diff options
-rw-r--r-- | cores/arduino/Stream.cpp | 2 | ||||
-rw-r--r-- | cores/robot/Stream.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/Stream.cpp b/cores/arduino/Stream.cpp index aafb7fc..f21a411 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/robot/Stream.cpp b/cores/robot/Stream.cpp index aafb7fc..f21a411 100644 --- a/cores/robot/Stream.cpp +++ b/cores/robot/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 |