fix reboot

This commit is contained in:
merlokk
2019-08-22 15:49:33 +03:00
committed by Conor Patrick
parent a95e62e2ea
commit c972a13034
3 changed files with 8 additions and 3 deletions

View File

@ -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");