Tools: populate sysid/compid in reboot ACK

This commit is contained in:
Peter Barker 2022-09-14 10:46:55 +10:00 committed by Peter Barker
parent 0827ec0aaa
commit 25c3665277
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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: