AP_BattMonitor: move from HAL_NO_GCS to HAL_GCS_ENABLED

This commit is contained in:
Peter Barker 2021-08-18 21:42:16 +10:00 committed by Peter Barker
parent cf9a774bc2
commit b18bdb80d6

View File

@ -712,7 +712,7 @@ void AP_BattMonitor::checkPoweringOff(void)
#endif
// Send a Mavlink broadcast announcing the shutdown
#ifndef HAL_NO_GCS
#if HAL_GCS_ENABLED
mavlink_command_long_t cmd_msg{};
cmd_msg.command = MAV_CMD_POWER_OFF_INITIATED;
cmd_msg.param1 = i+1;