GCS_MAVLink: add and use AP_BARO_ENABLED
This commit is contained in:
parent
3657852e30
commit
61affcf4e4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user