chg: cident - uses NG

This commit is contained in:
iceman1001
2019-05-15 07:03:19 -04:00
parent 65ff4f0e92
commit 50c59fb6b2
2 changed files with 8 additions and 3 deletions

View File

@@ -974,8 +974,10 @@ void detect_classic_magic(void) {
PacketResponseNG resp;
clearCommandBuffer();
SendCommandNG(CMD_MIFARE_CIDENT, NULL, 0);
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500))
isGeneration = resp.oldarg[0] & 0xff;
if (WaitForResponseTimeout(CMD_MIFARE_CIDENT, &resp, 1500)) {
if ( resp.status == PM3_SUCCESS )
isGeneration = resp.data.asBytes[0];
}
switch (isGeneration) {
case 1: