fix(bt): Logic error where txCompleted was reported while still transmitting (#3405)
This commit is contained in:
@@ -162,6 +162,6 @@ uint8_t bluetoothIsWriting(void)
|
|||||||
if (!_bt_usart_ctx)
|
if (!_bt_usart_ctx)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return STM32SerialDriver.txCompleted(_bt_usart_ctx);
|
return !STM32SerialDriver.txCompleted(_bt_usart_ctx);
|
||||||
}
|
}
|
||||||
#endif // !BOOT
|
#endif // !BOOT
|
||||||
|
|||||||
Reference in New Issue
Block a user