mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: cident - uses NG
This commit is contained in:
parent
65ff4f0e92
commit
50c59fb6b2
2 changed files with 8 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue