Skip to content

Commit

Permalink
GCS_MAVLINK: correct mavlink return code when wiping storage header
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Oct 1, 2021
1 parent ae65f2e commit 4aeb85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/GCS_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4aeb85d

Please sign in to comment.