Skip to content

Commit

Permalink
feat: reduce bluetooth serial flush delay to 2 ms (#9905)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincadrn authored Jun 19, 2024
1 parent 206c0c7 commit d708438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/BluetoothSerial/src/BluetoothSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit d708438

Please sign in to comment.