From 081c40c6fa2045560f80b0c0707f400eb31b7ff4 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 15 Feb 2017 22:16:20 +0100 Subject: [PATCH] Commander: Fix level cal command --- src/modules/commander/commander.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 03b8dc2d3c..cd750783c0 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -3991,7 +3991,7 @@ void *commander_low_prio_loop(void *arg) answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub, command_ack); calib_ret = do_gyro_calibration(&mavlink_log_pub); - } else if ((int)(cmd.param1) == 2 || (int)(cmd.param5) == 2 || (int)(cmd.param7) == 2) { + } else if ((int)(cmd.param1) == 3 || (int)(cmd.param5) == 3 || (int)(cmd.param7) == 3) { /* temperature calibration: handled in events module */ break;