Unly call Updater on startup if the SPIFFS needs an update.
This commit is contained in:
@@ -136,7 +136,9 @@ void setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OTA_UPDATE_URL
|
#ifdef OTA_UPDATE_URL
|
||||||
Updater::run(spiffs_version);
|
if (spiffs_version < OTA_VERSION) {
|
||||||
|
Updater::run(spiffs_version);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
INFO("Initialization completed.\n");
|
INFO("Initialization completed.\n");
|
||||||
|
Reference in New Issue
Block a user