From 4aeb85d080900970091b521220e82f2db962acd0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 1 Oct 2021 10:13:55 +1000 Subject: [PATCH] GCS_MAVLINK: correct mavlink return code when wiping storage header --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 4acf0063b0..9d6e5a973e 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -2787,7 +2787,7 @@ MAV_RESULT GCS_MAVLINK::handle_preflight_reboot(const mavlink_command_long_t &pa StorageAccess param_storage{StorageManager::StorageParam}; uint8_t zeros[40] {}; param_storage.write_block(0, zeros, sizeof(zeros)); - return MAV_RESULT_FAILED; + return MAV_RESULT_ACCEPTED; } if (is_equal(packet.param4, 97.0f)) { // create a really long loop