Blimp: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false

This commit is contained in:
Peter Barker 2023-10-25 12:15:02 +11:00 committed by Peter Barker
parent c3e5ea0b0f
commit 6cfc6f56cb
1 changed files with 2 additions and 0 deletions

View File

@ -352,7 +352,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = {
MSG_WIND,
MSG_RANGEFINDER,
MSG_DISTANCE_SENSOR,
#if AP_BATTERY_ENABLED
MSG_BATTERY_STATUS,
#endif
MSG_GIMBAL_DEVICE_ATTITUDE_STATUS,
MSG_OPTICAL_FLOW,
#if COMPASS_CAL_ENABLED