From e47a5c1ea98878d994af1092c3757798e8ae204b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 2 Nov 2023 09:53:13 +1100 Subject: [PATCH] AP_GPS: make AP_GPS_FixType enum class Don't want "NONE" in the global namespace --- libraries/AP_GPS/AP_GPS_FixType.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS_FixType.h b/libraries/AP_GPS/AP_GPS_FixType.h index e3254551d3..93b51fed0d 100644 --- a/libraries/AP_GPS/AP_GPS_FixType.h +++ b/libraries/AP_GPS/AP_GPS_FixType.h @@ -7,7 +7,7 @@ // this is not enum-class as many places in the code want to check for // "a fix at least this good" using "<". -enum AP_GPS_FixType { +enum class AP_GPS_FixType { NO_GPS = 0, ///< No GPS connected/detected NONE = 1, ///< Receiving valid GPS messages but no lock FIX_2D = 2, ///< Receiving valid messages and 2D lock