Browse Source

AP_BattMonitor: correct use of random stack data

mission-4.1.18
Peter Barker 6 years ago committed by Randy Mackay
parent
commit
ef699367d5
  1. 2
      libraries/AP_BattMonitor/AP_BattMonitor.cpp

2
libraries/AP_BattMonitor/AP_BattMonitor.cpp

@ -477,7 +477,7 @@ void AP_BattMonitor::checkPoweringOff(void) @@ -477,7 +477,7 @@ void AP_BattMonitor::checkPoweringOff(void)
// Send a Mavlink broadcast announcing the shutdown
mavlink_message_t msg;
mavlink_command_long_t cmd_msg;
mavlink_command_long_t cmd_msg{};
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);

Loading…
Cancel
Save