Skip to content

Commit

Permalink
Fix gps new data
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Apr 24, 2023
1 parent 34057bf commit f5317fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/io/gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ void onGpsNewData(void)

lastTimeUs = timeUs;

if (!(STATE(GPS_FIX) && gpsSol.numSat >= GPS_MIN_SAT_COUNT)) {
if (!(STATE(GPS_FIX) || gpsSol.numSat <= GPS_MIN_SAT_COUNT)) {
// if we don't have a 3D fix and the minimum sats, don't give data to GPS rescue
return;
}
Expand Down

0 comments on commit f5317fa

Please sign in to comment.