From c4100d192f907044751d695ec20c2e103a13f602 Mon Sep 17 00:00:00 2001 From: Eric Betts Date: Tue, 1 Aug 2023 20:58:46 -0700 Subject: [PATCH] handle no-change slot notification --- ccid.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ccid.c b/ccid.c index 05d5a0c..4229192 100644 --- a/ccid.c +++ b/ccid.c @@ -144,6 +144,10 @@ size_t seader_ccid_process(SeaderWorker* seader_worker, uint8_t* cmd, size_t cmd if(cmd_len == 2) { if(cmd[0] == CCID_MESSAGE_TYPE_RDR_to_PC_NotifySlotChange) { switch(cmd[1] & SLOT_0_MASK) { + case 0: + case 1: + // No change, no-op + break; case CARD_IN_1: FURI_LOG_D(TAG, "Card Inserted (0)"); if(hasSAM && sam_slot == 0) { @@ -166,6 +170,10 @@ size_t seader_ccid_process(SeaderWorker* seader_worker, uint8_t* cmd, size_t cmd }; switch(cmd[1] & SLOT_1_MASK) { + case 0: + case 1: + // No change, no-op + break; case CARD_IN_2: FURI_LOG_D(TAG, "Card Inserted (1)"); if(hasSAM && sam_slot == 1) {