HAL_ChibiOS: fixed build of f3 boards without PWM out

This commit is contained in:
Andrew Tridgell 2021-02-24 09:25:11 +11:00
parent 98abe125ad
commit 14791c335b
1 changed files with 2 additions and 0 deletions

View File

@ -346,9 +346,11 @@ void Scheduler::_rcout_thread(void *arg)
while (!sched->_hal_initialized) { while (!sched->_hal_initialized) {
sched->delay_microseconds(1000); sched->delay_microseconds(1000);
} }
#if HAL_USE_PWM == TRUE
// trampoline into the rcout thread // trampoline into the rcout thread
((RCOutput*)hal.rcout)->rcout_thread(); ((RCOutput*)hal.rcout)->rcout_thread();
#endif #endif
#endif
} }
/* /*