1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00

sync with arduino avr src

This commit is contained in:
Markus Sattler
2015-06-19 10:53:35 +02:00
parent d6f62943d4
commit af4f2d5e28
5 changed files with 11 additions and 4 deletions

View File

@ -69,6 +69,8 @@ class Stream: public Print {
}
// returns true if target string is found, false if timed out
bool find(char target) { return find (&target, 1); }
bool findUntil(const char *target, const char *terminator); // as find but search ends if the terminator string is found
bool findUntil(const uint8_t *target, const char *terminator) {
return findUntil((char *) target, terminator);