Skip to content

Commit b894e71

Browse files
committed
Set Stream timeout to 0 in constructor
as the Stream input is packet based and buffered.
1 parent 2a0a42a commit b894e71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LoRa.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ LoRaClass::LoRaClass() :
5555
_implicitHeaderMode(0),
5656
_onReceive(NULL)
5757
{
58+
// overide Stream timeout value
59+
setTimeout(0);
5860
}
5961

6062
int LoRaClass::begin(long frequency)

0 commit comments

Comments
 (0)