aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2014-06-13 10:29:12 +0200
committerCristian Maglie <c.maglie@bug.st>2014-06-13 10:29:12 +0200
commitfca64de38731aa111924a5488a3a56d44cf1b3a2 (patch)
tree5210af6ba828c22fe42f832a594b3e6720d599ab
parent8bef5cdf0392f6a3a13e0f8ead92efeebfcf5aac (diff)
parent12219b37d5f4569649cd4dac247fbfcee5dfb79b (diff)
Merge branch 'master' into HEAD
-rw-r--r--cores/arduino/Stream.cpp2
-rw-r--r--cores/arduino/USBAPI.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/Stream.cpp b/cores/arduino/Stream.cpp
index a12a72e..39873aa 100644
--- a/cores/arduino/Stream.cpp
+++ b/cores/arduino/Stream.cpp
@@ -75,7 +75,7 @@ void Stream::setTimeout(unsigned long timeout) // sets the maximum number of mi
// find returns true if the target string is found
bool Stream::find(char *target)
{
- return findUntil(target, NULL);
+ return findUntil(target, "");
}
// reads data from the stream until the target string of given length is found
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index c637fda..3b613d4 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -36,7 +36,7 @@ struct ring_buffer;
class Serial_ : public Stream
{
private:
- int peek_buffer;
+ int peek_buffer = -1;
public:
void begin(unsigned long);
void begin(unsigned long, uint8_t);