Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main/io/gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,9 @@ bool gpsUpdate(void)
// Call GPS protocol thread
gpsProviders[gpsState.gpsConfig->provider].protocol();

// Check for GPS timeout
if ((millis() - gpsState.lastMessageMs) > gpsState.baseTimeoutMs) {
// Check for GPS timeout. The protocol may ask for longer while it sets the
// receiver up, during autobaud or detection, but never gets less than the base
if ((millis() - gpsState.lastMessageMs) > MAX(gpsState.timeoutMs, gpsState.baseTimeoutMs)) {
sensorsClear(SENSOR_GPS);
DISABLE_STATE(GPS_FIX);
gpsSol.fixType = GPS_NO_FIX;
Expand Down
Loading