editable serial input line buffer
Dependents: MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more
Revision 20:92a1fb8a5732, committed 2021-12-02
- Comitter:
- whismanoid
- Date:
- Thu Dec 02 23:59:26 2021 -0800
- Parent:
- 19:b14922500968
- Commit message:
- clear warning CmdLine variable 'idxBR' set but not used
Changed in this revision
CmdLine.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b14922500968 -r 92a1fb8a5732 CmdLine.cpp --- a/CmdLine.cpp Tue Nov 30 00:48:26 2021 -0800 +++ b/CmdLine.cpp Thu Dec 02 23:59:26 2021 -0800 @@ -457,7 +457,7 @@ // possible match; compare buf[idxSearch..] to key[0..] unsigned int idxKey = idxSearch; // test whether buf[idxKey..] == key[0..] unsigned int idxBL = 0; // find such that buf[idxBL] == '[' // bracket left - unsigned int idxBR = 0; // find such that buf[idxBR] == ']' // bracket right + // unsigned int idxBR = 0; // find such that buf[idxBR] == ']' // bracket right unsigned int idxSeparator = idxSearch; // test whether key=value pair unsigned int idxSpace = idxSearch; // end of key=value word for (unsigned int offset = 0; offset < strlen(key); offset++) @@ -532,7 +532,7 @@ break; } else if (buf[idxBRsearch] == ']') { - idxBR = idxBRsearch; + // idxBR = idxBRsearch; idxSeparator = idxBRsearch; idxSpace = idxBRsearch; //~ break; @@ -548,8 +548,8 @@ } } if (verbose) { - serial().printf("\r\n parse_and_remove_key_and_arrayIndex(\"%s\") idxBL=%d idxBR=%d", - key, idxBL, idxBR); + serial().printf("\r\n parse_and_remove_key_and_arrayIndex(\"%s\") idxBL=%d", + key, idxBL); serial().printf("\r\n parse_and_remove_key_and_arrayIndex(\"%s\") buf[idxSeparator=%d]='%c'", key, idxSeparator, buf[idxSeparator]); //~ serial().printf("\r\n parse_and_remove_key_and_arrayIndex(\"%s\") [ index= %s ]", key, buf[idxBracket+1] );