Skip to content

Commit 6174752

Browse files
authored
Merge pull request #149 from dingo35/master
prevent ESP from restarting if signature check fails, so errors can b…
2 parents cca338b + 1511498 commit 6174752

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
@@ -649,10 +649,6 @@ bool esp32FOTA::execOTA( int partition, bool restart_after )
649649
if( onUpdateCheckFail ) onUpdateCheckFail( partition, CHECK_SIG_ERROR_VALIDATION_FAILED );
650650

651651
log_e("Signature check failed!");
652-
if( restart_after ) {
653-
log_w("Rebooting.");
654-
ESP.restart();
655-
}
656652
return false;
657653
} else {
658654
delete[] signature;

0 commit comments

Comments
 (0)