Skip to content

Commit da25a1d

Browse files
committed
Fixed setTimeout prototype (as size_t may not be unsigned long)
1 parent c5e0835 commit da25a1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ArduinoCore-API/api/Stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int Stream::peekNextDigit(LookaheadMode lookahead, bool detectDecimal)
8686
// Public Methods
8787
//////////////////////////////////////////////////////////////
8888

89-
void Stream::setTimeout(unsigned long timeout) // sets the maximum number of milliseconds to wait
89+
void Stream::setTimeout(size_t timeout) // sets the maximum number of milliseconds to wait
9090
{
9191
_timeout = timeout;
9292
}

0 commit comments

Comments
 (0)