fix(bt): Logic error where txCompleted was reported while still transmitting (#3405)

This commit is contained in:
Michael
2023-03-27 09:49:31 +10:00
committed by GitHub
parent 5622cb9c5c
commit 7e581d00dd
@@ -162,6 +162,6 @@ uint8_t bluetoothIsWriting(void)
if (!_bt_usart_ctx)
return false;
return STM32SerialDriver.txCompleted(_bt_usart_ctx);
return !STM32SerialDriver.txCompleted(_bt_usart_ctx);
}
#endif // !BOOT