Skip to content

Commit

Permalink
Merge pull request #2104 from amulya349/master
Browse files Browse the repository at this point in the history
Fix of a bug in Stream.cpp
  • Loading branch information
cmaglie committed Jun 2, 2014
2 parents 6914af0 + 2c3058b commit 1918966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hardware/arduino/cores/arduino/Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hardware/arduino/cores/robot/Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 1918966

@mikalhart
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Credit for the discovery and proposed fix should go to John P. Mechalas of Intel Corp.

Please sign in to comment.