AP_HAL_ChibiOS: allow forcing of trigger_groups()

This commit is contained in:
Andy Piper authored and Andrew Tridgell committed 2024-12-04 07:45:05 +11:00
1 parent 76897e9674
commit 048a3af785
2 files changed
+9 -1

No files matched your search

+2 -1
View File
@@ -1398,7 +1398,8 @@ void RCOutput::trigger_groups()
osalSysUnlock();
#if !defined(HAL_NO_RCOUT_THREAD) || HAL_DSHOT_ENABLED
// trigger a PWM send
if (!in_soft_serial() && hal.scheduler->in_main_thread() && rcout_thread_ctx) {
if (!in_soft_serial() &&
(hal.scheduler->in_main_thread() || force_trigger) && rcout_thread_ctx) {
chEvtSignal(rcout_thread_ctx, EVT_PWM_SEND);
}
#endif