From 47c65314fb020c0ca5a29c975e191d082ff26f7f Mon Sep 17 00:00:00 2001 From: Jaaaky <43599380+Jaaaky@users.noreply.github.com> Date: Tue, 30 Apr 2019 21:37:02 +0300 Subject: [PATCH] AP_InertialSensor: fix accelcalsimple watchdog --- libraries/AP_InertialSensor/AP_InertialSensor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.cpp b/libraries/AP_InertialSensor/AP_InertialSensor.cpp index 85874f3f31..5ed266dcf5 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor.cpp @@ -1860,6 +1860,7 @@ MAV_RESULT AP_InertialSensor::simple_accel_cal() return MAV_RESULT_TEMPORARILY_REJECTED; } + hal.scheduler->expect_delay_ms(20000); // record we are calibrating _calibrating = true; @@ -1999,6 +2000,8 @@ MAV_RESULT AP_InertialSensor::simple_accel_cal() // stop flashing leds AP_Notify::flags.initialising = false; + hal.scheduler->expect_delay_ms(0); + return result; }