From c84b102c1ca05817650f4aed23dac6ee0738d49a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 24 Jul 2017 09:54:13 +1000 Subject: [PATCH] Copter: move mavlink reboot code up to base class --- ArduCopter/GCS_Mavlink.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 468d81ea37..3fa297c5e1 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -979,17 +979,6 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg) } break; - case MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN: - if (is_equal(packet.param1,1.0f) || is_equal(packet.param1,3.0f)) { - AP_Notify::flags.firmware_update = 1; - copter.notify.update(); - hal.scheduler->delay(200); - // when packet.param1 == 3 we reboot to hold in bootloader - hal.scheduler->reboot(is_equal(packet.param1,3.0f)); - result = MAV_RESULT_ACCEPTED; - } - break; - case MAV_CMD_DO_FENCE_ENABLE: #if AC_FENCE == ENABLED result = MAV_RESULT_ACCEPTED;