GCS_MAVLINK: correct mavlink return code when wiping storage header

This commit is contained in:
Peter Barker 2021-10-01 10:13:55 +10:00 committed by Peter Barker
parent ae65f2e6ab
commit 4aeb85d080
1 changed files with 1 additions and 1 deletions

View File

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