mirror of https://github.com/ArduPilot/ardupilot
AP_BattMonitor: pass mavlink_message_t by const reference
This commit is contained in:
parent
78cd3cc722
commit
b67bab01f6
|
@ -466,7 +466,7 @@ void AP_BattMonitor::checkPoweringOff(void)
|
|||
cmd_msg.command = MAV_CMD_POWER_OFF_INITIATED;
|
||||
cmd_msg.param1 = i+1;
|
||||
mavlink_msg_command_long_encode(mavlink_system.sysid, MAV_COMP_ID_ALL, &msg, &cmd_msg);
|
||||
GCS_MAVLINK::send_to_components(&msg);
|
||||
GCS_MAVLINK::send_to_components(msg);
|
||||
gcs().send_text(MAV_SEVERITY_WARNING, "Vehicle %d battery %d is powering off", mavlink_system.sysid, i+1);
|
||||
|
||||
// only send this once
|
||||
|
|
Loading…
Reference in New Issue