Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bafd30d

Browse files
committedJun 2, 2014
Merge pull request #2104 from amulya349/master
Fix of a bug in Stream.cpp
2 parents 2eba1c8 + ec19e38 commit bafd30d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎cores/arduino/Stream.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void Stream::setTimeout(unsigned long timeout) // sets the maximum number of mi
7575
// find returns true if the target string is found
7676
bool Stream::find(char *target)
7777
{
78-
return findUntil(target, NULL);
78+
return findUntil(target, "");
7979
}
8080

8181
// reads data from the stream until the target string of given length is found

‎cores/robot/Stream.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void Stream::setTimeout(unsigned long timeout) // sets the maximum number of mi
7575
// find returns true if the target string is found
7676
bool Stream::find(char *target)
7777
{
78-
return findUntil(target, NULL);
78+
return findUntil(target, "");
7979
}
8080

8181
// reads data from the stream until the target string of given length is found

0 commit comments

Comments
 (0)
Please sign in to comment.