From 25c366527722b867427eece4262fade71152c71f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 14 Sep 2022 10:46:55 +1000 Subject: [PATCH] Tools: populate sysid/compid in reboot ACK --- Tools/AP_Periph/GCS_MAVLink.cpp | 2 +- Tools/AP_Periph/GCS_MAVLink.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/AP_Periph/GCS_MAVLink.cpp b/Tools/AP_Periph/GCS_MAVLink.cpp index 1d495e1036..03d3f4c8ef 100644 --- a/Tools/AP_Periph/GCS_MAVLink.cpp +++ b/Tools/AP_Periph/GCS_MAVLink.cpp @@ -67,7 +67,7 @@ uint8_t GCS_Periph::sysid_this_mav() const return periph.g.sysid_this_mav; } -MAV_RESULT GCS_MAVLINK_Periph::handle_preflight_reboot(const mavlink_command_long_t &packet) +MAV_RESULT GCS_MAVLINK_Periph::handle_preflight_reboot(const mavlink_command_long_t &packet, const mavlink_message_t &msg) { hal.scheduler->delay(10); periph.prepare_reboot(); diff --git a/Tools/AP_Periph/GCS_MAVLink.h b/Tools/AP_Periph/GCS_MAVLink.h index 524ec93b23..07b40c48e1 100644 --- a/Tools/AP_Periph/GCS_MAVLink.h +++ b/Tools/AP_Periph/GCS_MAVLink.h @@ -31,7 +31,7 @@ private: uint32_t telem_delay() const override { return 0; } void handleMessage(const mavlink_message_t &msg) override { handle_common_message(msg); } bool handle_guided_request(AP_Mission::Mission_Command &cmd) override { return true; } - MAV_RESULT handle_preflight_reboot(const mavlink_command_long_t &packet) override; + MAV_RESULT handle_preflight_reboot(const mavlink_command_long_t &packet, const mavlink_message_t &msg) override; protected: