File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,11 @@ TextIO& TextIO::operator<<(Separator value) {
7070 return *this ;
7171};
7272
73-
73+ #ifndef ESP32
74+ #define LOOKAHEADARGS LookaheadMode::SKIP_NONE
75+ #else
76+ #define LOOKAHEADARGS
77+ #endif
7478
7579TextIO& TextIO::operator >>(float &value) {
7680 if (_io.peek () == ' \n ' ) {
@@ -79,7 +83,7 @@ TextIO& TextIO::operator>>(float &value) {
7983 if (in_sep) {
8084 _io.read (); // discard the separator
8185 }
82- value = _io.parseFloat (LookaheadMode::SKIP_NONE ); // TODO LookaheadMode is not defined on ESP32
86+ value = _io.parseFloat (LOOKAHEADARGS ); // TODO LookaheadMode is not defined on ESP32
8387 in_sep = true ;
8488 return *this ;
8589};
@@ -91,7 +95,7 @@ TextIO& TextIO::operator>>(uint32_t &value) {
9195 if (in_sep) {
9296 _io.read (); // discard the separator
9397 }
94- value = (uint32_t )_io.parseInt (LookaheadMode::SKIP_NONE );
98+ value = (uint32_t )_io.parseInt (LOOKAHEADARGS );
9599 in_sep = true ;
96100 return *this ;
97101};
@@ -105,7 +109,7 @@ TextIO& TextIO::operator>>(uint8_t &value) {
105109 if (in_sep) {
106110 _io.read (); // discard the separator
107111 }
108- value = (uint8_t )_io.parseInt (LookaheadMode::SKIP_NONE );
112+ value = (uint8_t )_io.parseInt (LOOKAHEADARGS );
109113 in_sep = true ;
110114 return *this ;
111115};
You can’t perform that action at this time.
0 commit comments