From db8fdeebeb3472db7e310dbd6c5ea5101b6c0e9c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Apr 2020 18:07:44 +1000 Subject: [PATCH] HAL_ChibiOS: fixed Hott telem half duplex handling this fixes an issue with single byte writes with half duplex. It isn't an elegent solution, but nicely separates the different types of half duplex operation --- 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 29557864be..430e70a0bc 100644 --- a/libraries/AP_HAL_ChibiOS/UARTDriver.cpp +++ b/libraries/AP_HAL_ChibiOS/UARTDriver.cpp @@ -817,7 +817,7 @@ void UARTDriver::write_pending_bytes_NODMA(uint32_t n) ByteBuffer::IoVec vec[2]; uint16_t nwritten = 0; - if (half_duplex) { + if (half_duplex && n > 1) { half_duplex_setup_tx(); }