fix reboot
This commit is contained in:
@ -757,10 +757,10 @@ void apdu_process(uint8_t buf0, uint8_t *apduptr, APDU_STRUCT *apdu)
|
||||
break;
|
||||
|
||||
case APDU_SOLO_RESET:
|
||||
if (apdu.lc == 18 && !memcmp(apdu.data, "Reset solo please>", 18)) {
|
||||
if (apdu.lc == 4 && !memcmp(apdu.data, "\x12\x56\xab\xf0", 4)) {
|
||||
printf1(TAG_NFC, "Reset...\r\n");
|
||||
delay(10);
|
||||
NVIC_SystemReset();
|
||||
device_reboot();
|
||||
while(1);
|
||||
} else {
|
||||
printf1(TAG_NFC, "Reset FAIL\r\n");
|
||||
|
Reference in New Issue
Block a user