Skip to content

Commit

Permalink
firmware/sniffer: Log old and new state in ISO7816-3 state changes
Browse files Browse the repository at this point in the history
Change-Id: Iddb460cc2ad02c11a74de10dab127bb14cee9605
  • Loading branch information
laf0rge committed Nov 19, 2022
1 parent c343995 commit 4836f23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/libcommon/source/sniffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,10 @@ static void change_state(enum iso7816_3_sniff_state iso_state_new)
break;
}

TRACE_INFO("ISO 7816-3 state %u->%u\n\r", iso_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);
}

const struct value_string data_flags[] = {
Expand Down

0 comments on commit 4836f23

Please sign in to comment.