From ab5aea40a6bd3ccef74a2cc394f5bb88d4e940d8 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Tue, 24 Mar 2015 17:13:14 +0100 Subject: [PATCH] Stream: set findMulti function as protected let's not expose it until the API is not accepted widely by the dev mailing list --- hardware/arduino/avr/cores/arduino/Stream.h | 3 --- hardware/arduino/sam/cores/arduino/Stream.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/hardware/arduino/avr/cores/arduino/Stream.h b/hardware/arduino/avr/cores/arduino/Stream.h index d0b1f3299..a8101320c 100644 --- a/hardware/arduino/avr/cores/arduino/Stream.h +++ b/hardware/arduino/avr/cores/arduino/Stream.h @@ -98,7 +98,6 @@ class Stream : public Print float parseFloat(char skipChar); // as above but the given skipChar is ignored - public: struct MultiTarget { const char *str; // string you're searching for size_t len; // length of string you're searching for @@ -108,8 +107,6 @@ class Stream : public Print // This allows you to search for an arbitrary number of strings. // Returns index of the target that is found first or -1 if timeout occurs. int findMulti(struct MultiTarget *targets, int tCount); - - }; diff --git a/hardware/arduino/sam/cores/arduino/Stream.h b/hardware/arduino/sam/cores/arduino/Stream.h index b81133700..0d9a49aca 100644 --- a/hardware/arduino/sam/cores/arduino/Stream.h +++ b/hardware/arduino/sam/cores/arduino/Stream.h @@ -98,7 +98,6 @@ class Stream : public Print float parseFloat(char skipChar); // as above but the given skipChar is ignored - public: struct MultiTarget { const char *str; // string you're searching for size_t len; // length of string you're searching for @@ -108,8 +107,6 @@ class Stream : public Print // This allows you to search for an arbitrary number of strings. // Returns index of the target that is found first or -1 if timeout occurs. int findMulti(struct MultiTarget *targets, int tCount); - - }; #endif