Skip to content

Commit c4ab139

Browse files
authored
feat: reduce bluetooth serial flush delay to 2 ms
1 parent b77b38e commit c4ab139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/BluetoothSerial/src/BluetoothSerial.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ size_t BluetoothSerial::write(const uint8_t *buffer, size_t size) {
878878
void BluetoothSerial::flush() {
879879
if (_spp_tx_queue != NULL) {
880880
while (uxQueueMessagesWaiting(_spp_tx_queue) > 0) {
881-
delay(100);
881+
delay(2);
882882
}
883883
}
884884
}

0 commit comments

Comments
 (0)