firmware: Drop CEMU_TX_DATA when sim is in-active

When the emulated sim is in reset or without power, drop
CEMU_TX_DATA.

Change-Id: I796e548225a742cddfde12bd6a60e4d2e5c04c8f
This commit is contained in:
Alexander Couzens
2026-07-11 23:38:15 +02:00
parent 567c03c83f
commit bebed508dd
3 changed files with 20 additions and 0 deletions
+13
View File
@@ -215,6 +215,19 @@ struct card_handle {
} stats;
};
/* if the card should enque messages */
bool card_ready(struct card_handle *ch)
{
switch (ch->state) {
case ISO_S_IN_PTS:
case ISO_S_WAIT_TPDU:
case ISO_S_IN_TPDU:
return true;
default:
return false;
}
}
/* reset all the 'dynamic' state of the card handle to the initial/default values */
static void card_handle_reset(struct card_handle *ch)
{