diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index 9caa950c03..b29dbc2943 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -931,7 +931,6 @@ uint8_t AP_GPS_UBLOX::config_key_size(ConfigKey key) const */ int8_t AP_GPS_UBLOX::find_active_config_index(ConfigKey key) const { -#if GPS_MOVING_BASELINE if (active_config.list == nullptr) { return -1; } @@ -940,7 +939,7 @@ int8_t AP_GPS_UBLOX::find_active_config_index(ConfigKey key) const return (int8_t)i; } } -#endif + return -1; }