diff options
author | Matt Robinson <git@nerdoftheherd.com> | 2014-07-17 16:44:30 +0100 |
---|---|---|
committer | Matt Robinson <git@nerdoftheherd.com> | 2014-07-17 16:51:35 +0100 |
commit | cd68a1c52cd77029d5cb463ed65f10ebe011da6d (patch) | |
tree | cb414f8a28f1d2bb1eebbf721f02050a81cee192 /cores | |
parent | cb4ae51b425568c7d404798ec4010660c46a5638 (diff) |
Cast empty string to char* to fix compiler warning
Stream::find(char *target) passes an empty terminator string to
Stream::findUntil(char *target, char *terminator) which caused a compiler
warning with the updated toolchain, so cast it to a char*.
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/Stream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Stream.cpp b/cores/arduino/Stream.cpp index 39873aa..9c581be 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, ""); + return findUntil(target, (char*)""); } // reads data from the stream until the target string of given length is found |