File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ String jsonExtract(String json, String name){
78
78
if (next == ' \" ' ){
79
79
// Serial.println(".. a string");
80
80
start = start + 1 ;
81
- stop = json.indexOf (' "' , start + 1 );
81
+ stop = json.indexOf (' "' , start);
82
82
}
83
83
else if (next == ' [' ){
84
84
// Serial.println(".. a list");
@@ -111,7 +111,7 @@ String jsonExtract(String json, String name){
111
111
else if (next == ' .' || next == ' -' || (' 0' <= next && next <= ' 9' )){
112
112
// Serial.println(".. a number");
113
113
int i = start;
114
- while (( i++ < json.length () && json.charAt (i) == ' .' ) || (' 0' <= json.charAt (i) && json.charAt (i) <= ' 9' )){
114
+ while (i++ < json.length () && ( json.charAt (i) == ' .' || (' 0' <= json.charAt (i) && json.charAt (i) <= ' 9' ) )){
115
115
}
116
116
stop = i;
117
117
}
You can’t perform that action at this time.
0 commit comments