From c4ab1396c56768bc5200a87d814cdb0ab35b5b87 Mon Sep 17 00:00:00 2001 From: Vincentius Adrian Date: Wed, 19 Jun 2024 21:25:17 +0700 Subject: [PATCH] feat: reduce bluetooth serial flush delay to 2 ms --- libraries/BluetoothSerial/src/BluetoothSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/BluetoothSerial/src/BluetoothSerial.cpp b/libraries/BluetoothSerial/src/BluetoothSerial.cpp index 9eaf7bda816..bcb94db910f 100644 --- a/libraries/BluetoothSerial/src/BluetoothSerial.cpp +++ b/libraries/BluetoothSerial/src/BluetoothSerial.cpp @@ -878,7 +878,7 @@ size_t BluetoothSerial::write(const uint8_t *buffer, size_t size) { void BluetoothSerial::flush() { if (_spp_tx_queue != NULL) { while (uxQueueMessagesWaiting(_spp_tx_queue) > 0) { - delay(100); + delay(2); } } }