diff --git a/armsrc/Standalone/hf_cardhopper.c b/armsrc/Standalone/hf_cardhopper.c index d199dcdab..8baa511d2 100644 --- a/armsrc/Standalone/hf_cardhopper.c +++ b/armsrc/Standalone/hf_cardhopper.c @@ -250,7 +250,7 @@ static void become_card(void) { while (1) { WDT_HIT(); - if (!GetIso14443aCommandFromReaderInterruptible(fromReaderDat, sizeof(fromReaderDat), parity, &fromReaderLen)) { + if (GetIso14443aCommandFromReaderInterruptible(fromReaderDat, sizeof(fromReaderDat), parity, &fromReaderLen) == false) { if (cardhopper_data_available()) { read_packet(rx); if (memcmp(magicRSRT, rx->dat, sizeof(magicRSRT)) == 0) { diff --git a/armsrc/Standalone/hf_emvpng.c b/armsrc/Standalone/hf_emvpng.c index 26565a551..f80401ec6 100644 --- a/armsrc/Standalone/hf_emvpng.c +++ b/armsrc/Standalone/hf_emvpng.c @@ -403,7 +403,7 @@ void RunMod(void) { for (;;) { LED_B_OFF(); // clean receive command buffer - if (!GetIso14443aCommandFromReader(receivedCmd, receivedCmdPar, &len)) { + if (GetIso14443aCommandFromReader(receivedCmd, sizeof(receivedCmd), receivedCmdPar, &len) == false) { DbpString(_YELLOW_("!!") "Emulator stopped"); retval = PM3_EOPABORTED; break; diff --git a/armsrc/Standalone/hf_tcprst.c b/armsrc/Standalone/hf_tcprst.c index d8ced29d4..58fb00163 100644 --- a/armsrc/Standalone/hf_tcprst.c +++ b/armsrc/Standalone/hf_tcprst.c @@ -216,7 +216,7 @@ void RunMod(void) { while (!gotkey) { LED_B_OFF(); // Clean receive command buffer - if (!GetIso14443aCommandFromReader(receivedCmd, sizeof(receivedCmd), receivedCmdPar, &len)) { + if (GetIso14443aCommandFromReader(receivedCmd, sizeof(receivedCmd), receivedCmdPar, &len) == false) { DbpString(_YELLOW_("!!") "Emulator stopped"); retval = PM3_EOPABORTED; break; @@ -394,7 +394,7 @@ void RunMod(void) { for (;;) { LED_B_OFF(); // Clean receive command buffer - if (!GetIso14443aCommandFromReader(receivedCmd, sizeof(receivedCmd), receivedCmdPar, &len)) { + if (GetIso14443aCommandFromReader(receivedCmd, sizeof(receivedCmd), receivedCmdPar, &len) == false) { DbpString(_YELLOW_("!!") "Emulator stopped"); retval = PM3_EOPABORTED; break; diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index ba0196ce9..adf2bd7de 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -2951,7 +2951,7 @@ void iso14443a_antifuzz(uint32_t flags) { WDT_HIT(); // Clean receive command buffer - if (!GetIso14443aCommandFromReader(received, MAX_FRAME_SIZE, receivedPar, &len)) { + if (GetIso14443aCommandFromReader(received, MAX_FRAME_SIZE, receivedPar, &len) == false) { Dbprintf("Anti-fuzz stopped. Trace length: %d ", BigBuf_get_traceLen()); break; }