Skip to content

Commit 1511498

Browse files
author
dingo35
committed
prevent ESP from restarting if signature check fails, so errors can be handled correctly by calling routine
1 parent c8573d1 commit 1511498

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/esp32FOTA.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,6 @@ bool esp32FOTA::execOTA( int partition, bool restart_after )
638638
if( onUpdateCheckFail ) onUpdateCheckFail( partition, CHECK_SIG_ERROR_VALIDATION_FAILED );
639639

640640
log_e("Signature check failed!");
641-
if( restart_after ) {
642-
log_w("Rebooting.");
643-
ESP.restart();
644-
}
645641
return false;
646642
} else {
647643
delete[] signature;

0 commit comments

Comments
 (0)