mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Merge pull request #951 from McEloff/hf_mf_gen3_fix
Fix: magic gen 3 card response check
This commit is contained in:
commit
e1b2011dcc
1 changed files with 1 additions and 1 deletions
|
@ -2347,7 +2347,7 @@ int DoGen3Cmd(uint8_t *cmd, uint8_t cmd_len) {
|
||||||
|
|
||||||
ReaderTransmit(cmd, cmd_len, NULL);
|
ReaderTransmit(cmd, cmd_len, NULL);
|
||||||
int res = ReaderReceive(buf, par);
|
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
|
// timeout for card memory reset
|
||||||
SpinDelay(1000);
|
SpinDelay(1000);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue