From c1e2aeff0bdcf4895c47dd0f981791bdd63a01ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 19 Jan 2017 16:01:01 +0100 Subject: [PATCH] commander: ignore PREFLIGHT_CALIBRATION for temperature calibration param --- src/modules/commander/commander.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 5d3d352b57..24f11faa41 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -3978,6 +3978,10 @@ 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) { + /* temperature calibration: handled in events module */ + break; + } else if ((int)(cmd.param2) == 1) { /* magnetometer calibration */ answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub, command_ack);