Skip to content

Commit

Permalink
AP_GPS: use AP_GPS_FixType for ExternalAHRS fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Sep 28, 2024
1 parent 75e83de commit 808856e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_GPS/AP_GPS_ExternalAHRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 808856e

Please sign in to comment.