Merge pull request from fifieldt/zombiegps

If GPS sleepTime is Zero, don't sleep.
This commit is contained in:
Thomas Göttgens 2024-09-09 12:12:53 +02:00 committed by GitHub
commit e985ee878f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1019,7 +1019,7 @@ void GPS::down()
LOG_DEBUG("%us until next search\n", sleepTime / 1000);
// If update interval less than 10 seconds, no attempt to sleep
if (updateInterval <= 10 * 1000UL)
if (updateInterval <= 10 * 1000UL || sleepTime == 0)
setPowerState(GPS_IDLE);
else {