mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_IOMCU: fixed race condition on thread startup
thread_ctx may not be set for first trigger_event()
This commit is contained in:
parent
b62773bbad
commit
82b5b94e24
@ -140,6 +140,8 @@ void AP_IOMCU::event_failed(uint8_t event)
|
||||
*/
|
||||
void AP_IOMCU::thread_main(void)
|
||||
{
|
||||
thread_ctx = chThdGetSelfX();
|
||||
|
||||
// uart runs at 1.5MBit
|
||||
uart.begin(1500*1000, 256, 256);
|
||||
uart.set_blocking_writes(false);
|
||||
|
Loading…
Reference in New Issue
Block a user