mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
MAVLink app: Handle reboot command properly on COMMAND_INT
This commit is contained in:
@@ -433,7 +433,7 @@ MavlinkReceiver::handle_message_command_int(mavlink_message_t *msg)
|
||||
|
||||
if (target_ok) {
|
||||
//check for MAVLINK terminate command
|
||||
if (cmd_mavlink.command == MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN && ((int)cmd_mavlink.param1) == 3) {
|
||||
if (cmd_mavlink.command == MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN && ((int)cmd_mavlink.param1) == 10) {
|
||||
/* This is the link shutdown command, terminate mavlink */
|
||||
warnx("terminated by remote");
|
||||
fflush(stdout);
|
||||
|
||||
Reference in New Issue
Block a user