From 0d48034c9194e7936873772080f8095e469a77f1 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 26 Jun 2018 15:16:57 +0200 Subject: [PATCH] do regular update checks --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 12db1bb..b9af2ae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -385,6 +385,8 @@ void ICACHE_FLASH_ATTR sendValues() { if (loop_count == 1) { XD0OTA ota; ota.update(); + } else if (loop_count > 720) { // do an update every 12h + loop_count = 0; } loop_count++;