Skip to content

Commit

Permalink
in BluetoothSerial.setTimeout also set timeout for parent class Strea…
Browse files Browse the repository at this point in the history
  • Loading branch information
MnlPhlp authored Mar 31, 2023
1 parent bef8a75 commit 7fd956d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/BluetoothSerial/src/BluetoothSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ int BluetoothSerial::read()
*/
void BluetoothSerial::setTimeout(int timeoutMS)
{
Stream::setTimeout(timeoutMS);
this->timeoutTicks=timeoutMS / portTICK_PERIOD_MS;
}

Expand Down

0 comments on commit 7fd956d

Please sign in to comment.