Skip to content

Commit

Permalink
Merge pull request #4658 from fifieldt/zombiegps
Browse files Browse the repository at this point in the history
If GPS sleepTime is Zero, don't sleep.
  • Loading branch information
caveman99 authored Sep 9, 2024
2 parents e470619 + ebe1b40 commit e985ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gps/GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e985ee8

Please sign in to comment.