diff --git a/libraries/AP_GPS/AP_GPS_SBF.cpp b/libraries/AP_GPS/AP_GPS_SBF.cpp index 7cb792b6b9..569d5b6910 100644 --- a/libraries/AP_GPS/AP_GPS_SBF.cpp +++ b/libraries/AP_GPS/AP_GPS_SBF.cpp @@ -453,10 +453,8 @@ AP_GPS_SBF::process_message(void) set_alt_amsl_cm(state, ((float)temp.Height - temp.Undulation) * 1e2f); } - state.num_sats = temp.NrSV; - if (temp.NrSV == 255) { - //Do-Not-Use value for NrSv field in PVTGeodetic message - state.num_sats = 0; + if (temp.NrSV != 255) { + state.num_sats = temp.NrSV; } Debug("temp.Mode=0x%02x\n", (unsigned)temp.Mode);