Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more
Diff: CmdLine.cpp
- Revision:
- 20:92a1fb8a5732
- Parent:
- 19:b14922500968
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] );