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
This commit is contained in:
Andrew Tridgell 2020-04-15 18:07:44 +10:00
parent 6672155e24
commit db8fdeebeb

View File

@ -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();
}