From 2a44dc598d46cf0a8fa629d8f600f86199767b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Redon?= Date: Sat, 28 Jul 2018 17:14:48 +0200 Subject: [PATCH] sniff: increase debug output Change-Id: Ife0bbcf4a25aaa445a36768c00004e6e0d9a4947 --- firmware/libcommon/source/sniffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/libcommon/source/sniffer.c b/firmware/libcommon/source/sniffer.c index c57877fa..982653c9 100644 --- a/firmware/libcommon/source/sniffer.c +++ b/firmware/libcommon/source/sniffer.c @@ -299,7 +299,7 @@ static void change_state(enum iso7816_3_sniff_state iso_state_new) /* save new state */ iso_state = iso_state_new; - //TRACE_INFO("Changed to ISO 7816-3 state %u\n\r", iso_state); /* don't print since this is function is also called by ISRs */ + TRACE_INFO("Changed to ISO 7816-3 state %u\n\r", iso_state); } const struct value_string data_flags[] = { @@ -1052,11 +1052,13 @@ void Sniffer_run(void) if (change_flags & SNIFF_CHANGE_FLAG_RESET_ASSERT) { if (ISO7816_S_RESET != iso_state) { change_state(ISO7816_S_RESET); + printf("reset asserted\n\r"); } } if (change_flags & SNIFF_CHANGE_FLAG_RESET_DEASSERT) { if (ISO7816_S_WAIT_ATR != iso_state) { change_state(ISO7816_S_WAIT_ATR); + printf("reset de-asserted\n\r"); } } if (change_flags & SNIFF_CHANGE_FLAG_TIMEOUT_WT) {