mirror of https://github.com/ArduPilot/ardupilot
AP_BattMonitor: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
This commit is contained in:
parent
ec5eb88217
commit
d205e2e5cf
|
@ -1037,7 +1037,7 @@ void AP_BattMonitor::checkPoweringOff(void)
|
|||
cmd_msg.command = MAV_CMD_POWER_OFF_INITIATED;
|
||||
cmd_msg.param1 = i+1;
|
||||
GCS_MAVLINK::send_to_components(MAVLINK_MSG_ID_COMMAND_LONG, (char*)&cmd_msg, sizeof(cmd_msg));
|
||||
gcs().send_text(MAV_SEVERITY_WARNING, "Vehicle %d battery %d is powering off", mavlink_system.sysid, i+1);
|
||||
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Vehicle %d battery %d is powering off", mavlink_system.sysid, i+1);
|
||||
#endif
|
||||
|
||||
// only send this once
|
||||
|
|
Loading…
Reference in New Issue