Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c4ab139

Browse files
authoredJun 19, 2024
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
 

‎libraries/BluetoothSerial/src/BluetoothSerial.cpp

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.