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
Updater::run(spiffs_version);
if (spiffs_version < OTA_VERSION) {
Updater::run(spiffs_version);
}
#endif
INFO("Initialization completed.\n");