mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: fix race condition in sending serial LED data
This commit is contained in:
parent
f0636bf22e
commit
3b5395eb2d
|
@ -2520,9 +2520,9 @@ void RCOutput::serial_led_send(const uint16_t chan)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grp->prepared_send) {
|
if (grp->prepared_send) {
|
||||||
chEvtSignal(led_thread_ctx, EVT_LED_SEND);
|
|
||||||
grp->serial_led_pending = true;
|
grp->serial_led_pending = true;
|
||||||
serial_led_pending = true;
|
serial_led_pending = true;
|
||||||
|
chEvtSignal(led_thread_ctx, EVT_LED_SEND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue