Skip to content

Commit

Permalink
feat: reduce bluetooth serial flush delay to 2 ms
Browse files Browse the repository at this point in the history
  • Loading branch information
vincadrn committed Jun 19, 2024
1 parent b77b38e commit c4ab139
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 c4ab139

Please sign in to comment.