aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2018-07-28 17:14:48 +0200
committerKévin Redon <kredon@sysmocom.de>2018-07-29 09:58:28 +0200
commit2a44dc598d46cf0a8fa629d8f600f86199767b70 (patch)
treeeb724be3c6c5234858c9e4a2143061c75cc616b4
parentec396bf4029ea66ce353e1018cd55ac2231220dc (diff)
sniff: increase debug output
-rw-r--r--firmware/libcommon/source/sniffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/libcommon/source/sniffer.c b/firmware/libcommon/source/sniffer.c
index c57877f..982653c 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) {