Skip to content

Commit cc7cccc

Browse files
Kevin Moloneycalvinatintel
authored andcommitted
find() missing overload in Stream.h
Signed-off-by: Kevin Moloney <kevin.moloney@emutex.com>
1 parent b0531af commit cc7cccc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/Stream.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ class Stream : public Print
6464
bool find(uint8_t *target, size_t length) { return find ((char *)target, length); }
6565
// returns true if target string is found, false if timed out
6666

67+
bool find(char target) { return find (&target, 1); }
68+
6769
bool findUntil(char *target, char *terminator); // as find but search ends if the terminator string is found
6870
bool findUntil(uint8_t *target, char *terminator) { return findUntil((char *)target, terminator); }
6971

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy