From 14791c335be6865efaa160fd20df904aefb449f9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 Feb 2021 09:25:11 +1100 Subject: [PATCH] HAL_ChibiOS: fixed build of f3 boards without PWM out --- libraries/AP_HAL_ChibiOS/Scheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/Scheduler.cpp b/libraries/AP_HAL_ChibiOS/Scheduler.cpp index 4c2ef18f0b7..e2cfef7a29a 100644 --- a/libraries/AP_HAL_ChibiOS/Scheduler.cpp +++ b/libraries/AP_HAL_ChibiOS/Scheduler.cpp @@ -346,9 +346,11 @@ void Scheduler::_rcout_thread(void *arg) while (!sched->_hal_initialized) { sched->delay_microseconds(1000); } +#if HAL_USE_PWM == TRUE // trampoline into the rcout thread ((RCOutput*)hal.rcout)->rcout_thread(); #endif +#endif } /*