Unly call Updater on startup if the SPIFFS needs an update.

This commit is contained in:
Fabian Schlenz 2019-11-29 05:32:22 +01:00
parent 7a20cf4b04
commit 6445dc0fb8

View File

@ -136,7 +136,9 @@ void setup() {
} }
#ifdef OTA_UPDATE_URL #ifdef OTA_UPDATE_URL
if (spiffs_version < OTA_VERSION) {
Updater::run(spiffs_version); Updater::run(spiffs_version);
}
#endif #endif
INFO("Initialization completed.\n"); INFO("Initialization completed.\n");