GCS_MAVLink: fixed critical error on prefight cal ops

This commit is contained in:
Andrew Tridgell 2019-12-12 20:37:22 +11:00
parent 042f6c65e7
commit 87f2839f3e

View File

@ -3283,6 +3283,7 @@ MAV_RESULT GCS_MAVLINK::_handle_command_preflight_calibration_baro()
MAV_RESULT GCS_MAVLINK::_handle_command_preflight_calibration(const mavlink_command_long_t &packet)
{
EXPECT_DELAY_MS(30000);
if (is_equal(packet.param1,1.0f)) {
if (!calibrate_gyros()) {
return MAV_RESULT_FAILED;