From 6445dc0fb8e6668c51d59d923a0125c3909ac8f3 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Fri, 29 Nov 2019 05:32:22 +0100 Subject: [PATCH] Unly call Updater on startup if the SPIFFS needs an update. --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 7b5804d..e95d555 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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");