mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 02:45:05 +00:00
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:
parent
6e437d3288
commit
a65a44de6b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user