AP_GPS: use AP_GPS_FixType for ExternalAHRS fix type

This commit is contained in:
Peter Barker 2024-09-28 17:27:44 +10:00 committed by Andrew Tridgell
parent f66815b200
commit 8dec79d136
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ void AP_GPS_ExternalAHRS::handle_external(const AP_ExternalAHRS::gps_data_messag
state.time_week = pkt.gps_week;
state.time_week_ms = pkt.ms_tow;
if (pkt.fix_type == 0) {
if (pkt.fix_type == AP_GPS_FixType::NO_GPS) {
state.status = AP_GPS::NO_FIX;
} else {
state.status = (AP_GPS::GPS_Status)pkt.fix_type;