From 1c5a954b244104ece7b3d4d0cea43b2b9f05ce40 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Apr 2022 14:57:18 +1000 Subject: [PATCH] HAL_ChibiOS: incorrect class of class in uart TX timeout need to call chEvtGetAndClearEventsI() as we are in a system lock state --- libraries/AP_HAL_ChibiOS/UARTDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/UARTDriver.cpp b/libraries/AP_HAL_ChibiOS/UARTDriver.cpp index edbea11471..ba47a65ad4 100644 --- a/libraries/AP_HAL_ChibiOS/UARTDriver.cpp +++ b/libraries/AP_HAL_ChibiOS/UARTDriver.cpp @@ -1021,7 +1021,7 @@ void UARTDriver::write_pending_bytes_DMA(uint32_t n) if (tx_len > 0) { _last_write_completed_us = AP_HAL::micros(); } - chEvtGetAndClearEvents(EVT_TRANSMIT_DMA_COMPLETE); + chEvtGetAndClearEventsI(EVT_TRANSMIT_DMA_COMPLETE); chSysUnlock(); } // clean up pending locks