Add search duration check for exceeding 15 minutes

Added a condition to check if the search duration exceeds 15 minutes, indicating too long of a search.
This commit is contained in:
Jonathan Bennett
2026-04-24 19:50:48 -05:00
committed by GitHub
parent 439b87b860
commit 85f8179aaf
+4
View File
@@ -81,6 +81,10 @@ bool GPSUpdateScheduling::searchedTooLong()
else if (elapsedSearchMs() > maxSearchMs)
return true;
// Anything over 15 minutes is too long. TODO: Make a smarter algorithm that backs off the search dwell time when not getting a lock.
else if (elapsedSearchMs() > 1000 * 60 * 15)
return true;
// Otherwise, not too long yet!
else
return false;