From a65a44de6b1d98243d2eaf4260819a68d18e15fe Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Wed, 14 Oct 2026 00:43:06 +0200 Subject: [PATCH] Fix for ip_provider triggering WDT (#693) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the WDT hang on ePaper device: Prevented location checks from repeating immediately when fallback isn’t needed or a cached result has already been reported. Subsequent checks now wait at least the normal interval. --- Modules/location-module/source/ip_provider.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/location-module/source/ip_provider.cpp b/Modules/location-module/source/ip_provider.cpp index dcd5642b1..4a685d8db 100644 --- a/Modules/location-module/source/ip_provider.cpp +++ b/Modules/location-module/source/ip_provider.cpp @@ -256,6 +256,7 @@ int32_t threadMain(void* context) { } if (!location_host_needs_fallback()) { + nextAttemptMs = std::max(nextAttemptMs, getUptimeMs() + CHECK_INTERVAL_MS); continue; } @@ -265,6 +266,7 @@ int32_t threadMain(void* context) { report(provider, cache->latitude, cache->longitude); reportedCache = true; } + nextAttemptMs = std::max(nextAttemptMs, getUptimeMs() + CHECK_INTERVAL_MS); continue; }