GCS_MAVLink: add and use AP_BARO_ENABLED

This commit is contained in:
Peter Barker 2023-06-20 16:50:04 +10:00 committed by Peter Barker
parent 3657852e30
commit 61affcf4e4
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ void GCS::update_sensor_status_flags()
}
#endif
#if !defined(HAL_BUILD_AP_PERIPH) || defined(HAL_PERIPH_ENABLE_BARO)
#if AP_BARO_ENABLED
const AP_Baro &barometer = AP::baro();
control_sensors_present |= MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE;
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE;