Fix: magic gen 3 card response check

This commit is contained in:
Eloff 2020-09-08 23:01:39 +03:00
parent 64e68cd158
commit 589b0142e0

View file

@ -2347,7 +2347,7 @@ int DoGen3Cmd(uint8_t *cmd, uint8_t cmd_len) {
ReaderTransmit(cmd, cmd_len, NULL);
int res = ReaderReceive(buf, par);
if (res == 4 || memcmp(buf, "\x90\x00\xfd\x07", 4) == 0) {
if (res == 4 && memcmp(buf, "\x90\x00\xfd\x07", 4) == 0) {
// timeout for card memory reset
SpinDelay(1000);
} else {