Fix for ip_provider triggering WDT (#693)

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.
This commit is contained in:
Ken Van Hoeylandt 2026-10-14 00:43:06 +02:00 committed by GitHub
parent 6e437d3288
commit a65a44de6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}