From 98c03b498d15f57d16397471aea02007bf6603f6 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Tue, 3 Aug 2021 18:42:07 +0100 Subject: [PATCH] AP_HAL_ChibiOS: return correct value for tx_pending(). --- 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 6649643d84..1611dde679 100644 --- a/libraries/AP_HAL_ChibiOS/UARTDriver.cpp +++ b/libraries/AP_HAL_ChibiOS/UARTDriver.cpp @@ -635,7 +635,7 @@ void UARTDriver::set_blocking_writes(bool blocking) _blocking_writes = blocking; } -bool UARTDriver::tx_pending() { return false; } +bool UARTDriver::tx_pending() { return _writebuf.available() > 0; } /* Empty implementations of Stream virtual methods */ uint32_t UARTDriver::available() {