AP_HAL_ChibiOS: fix race condition in sending serial LED data

This commit is contained in:
Andy Piper 2023-11-17 17:31:21 +00:00 committed by Andrew Tridgell
parent 2d465a5b20
commit b7fd04318a
1 changed files with 1 additions and 1 deletions

View File

@ -2626,9 +2626,9 @@ void RCOutput::serial_led_send(const uint16_t chan)
}
if (grp->prepared_send) {
chEvtSignal(led_thread_ctx, EVT_LED_SEND);
grp->serial_led_pending = true;
serial_led_pending = true;
chEvtSignal(led_thread_ctx, EVT_LED_SEND);
}
}
#endif // HAL_SERIALLED_ENABLED