Skip to content

Commit 27ce53d

Browse files
committed
Fixes hlt
1 parent 5a49a4a commit 27ce53d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/unit/unit_MFRC522.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -652,13 +652,8 @@ bool UnitMFRC522::hlt()
652652
buf[2] = crc & 0xFF;
653653
buf[3] = (crc >> 8) & 0xFF;
654654

655-
if (transmit_command(mfrc522::Command::Transceive, buf, sizeof(buf), txLast)) { // No recv data
656-
if (wait_comm_irq(TimerIRq, TIMEOUT_HALT)) {
657-
return true;
658-
}
659-
M5_LIB_LOGE("Timeout");
660-
}
661-
return false;
655+
(void)transmit_command(mfrc522::Command::Transceive, buf, sizeof(buf), txLast); // No recv data
656+
return true;
662657
}
663658

664659
// MIFARE

0 commit comments

Comments
 (0)