From ac566763fe9b2bf564d241fd2679c3a26d046f46 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 9 Nov 2020 14:44:55 +1100 Subject: [PATCH] HAL_ChibiOS: disable loop delay on replay --- libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp index 47c2c33db1..383fdef48b 100644 --- a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp +++ b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp @@ -257,7 +257,7 @@ static void main_loop() time from the main loop, so we don't need to do it again here */ -#ifndef HAL_DISABLE_LOOP_DELAY +#if !defined(HAL_DISABLE_LOOP_DELAY) && !APM_BUILD_TYPE(APM_BUILD_Replay) if (!schedulerInstance.check_called_boost()) { hal.scheduler->delay_microseconds(50); }