Unverified Commit d708438b authored by Vincentius Adrian's avatar Vincentius Adrian Committed by GitHub

feat: reduce bluetooth serial flush delay to 2 ms (#9905)

parent 206c0c71
...@@ -878,7 +878,7 @@ size_t BluetoothSerial::write(const uint8_t *buffer, size_t size) { ...@@ -878,7 +878,7 @@ size_t BluetoothSerial::write(const uint8_t *buffer, size_t size) {
void BluetoothSerial::flush() { void BluetoothSerial::flush() {
if (_spp_tx_queue != NULL) { if (_spp_tx_queue != NULL) {
while (uxQueueMessagesWaiting(_spp_tx_queue) > 0) { while (uxQueueMessagesWaiting(_spp_tx_queue) > 0) {
delay(100); delay(2);
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment