We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 372b584 + f29ec79 commit c0c06b9Copy full SHA for c0c06b9
cores/arduino/Stream.cpp
@@ -75,7 +75,7 @@ void Stream::setTimeout(unsigned long timeout) // sets the maximum number of mi
75
// find returns true if the target string is found
76
bool Stream::find(char *target)
77
{
78
- return findUntil(target, NULL);
+ return findUntil(target, "");
79
}
80
81
// reads data from the stream until the target string of given length is found
cores/arduino/USBAPI.h
@@ -36,7 +36,7 @@ struct ring_buffer;
36
class Serial_ : public Stream
37
38
private:
39
- int peek_buffer;
+ int peek_buffer = -1;
40
public:
41
void begin(unsigned long);
42
void begin(unsigned long, uint8_t);
0 commit comments