You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/esp32FOTA.cpp
+30-9Lines changed: 30 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -473,6 +473,27 @@ bool esp32FOTA::execOTA()
473
473
return ret;
474
474
}
475
475
476
+
// OTA Logic
477
+
boolesp32FOTA::execSPIFFSOTA()
478
+
{
479
+
bool ret;
480
+
setupStream();
481
+
482
+
if( !_flashFileSystemUrl.isEmpty() ) { // a data partition was specified in the json manifest, handle the spiffs partition first
483
+
if( _fs ) { // Possible risk of overwriting certs and signatures, cancel flashing!
484
+
log_e("Cowardly refusing to overwrite U_SPIFFS with %s. Use setCertFileSystem(nullptr) along with setPubKey()/setCAPem() to enable this feature.", _flashFileSystemUrl);
485
+
returnfalse;
486
+
} else {
487
+
log_i("Will check if U_SPIFFS needs updating");
488
+
ret = execOTA( U_SPIFFS, false );
489
+
}
490
+
} else {
491
+
log_i("This update is for U_FLASH only");
492
+
}
493
+
stopStream();
494
+
return ret;
495
+
}
496
+
476
497
477
498
boolesp32FOTA::execOTA( int partition, bool restart_after )
0 commit comments