small fix
This commit is contained in:
parent
c972a13034
commit
d39d7978fd
@ -757,14 +757,14 @@ void apdu_process(uint8_t buf0, uint8_t *apduptr, APDU_STRUCT *apdu)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case APDU_SOLO_RESET:
|
case APDU_SOLO_RESET:
|
||||||
if (apdu.lc == 4 && !memcmp(apdu.data, "\x12\x56\xab\xf0", 4)) {
|
if (apdu->lc == 4 && !memcmp(apdu->data, "\x12\x56\xab\xf0", 4)) {
|
||||||
printf1(TAG_NFC, "Reset...\r\n");
|
printf1(TAG_NFC, "Reset...\r\n");
|
||||||
delay(10);
|
delay(10);
|
||||||
device_reboot();
|
device_reboot();
|
||||||
while(1);
|
while(1);
|
||||||
} else {
|
} else {
|
||||||
printf1(TAG_NFC, "Reset FAIL\r\n");
|
printf1(TAG_NFC, "Reset FAIL\r\n");
|
||||||
nfc_write_response(buf[0], SW_INS_INVALID);
|
nfc_write_response(buf0, SW_INS_INVALID);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user