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.
Diff: yodiwo_helpers.c
- Revision:
- 1:e204589f4229
- Parent:
- 0:384a04dc912e
- Child:
- 2:855390040d43
diff -r 384a04dc912e -r e204589f4229 yodiwo_helpers.c
--- a/yodiwo_helpers.c Tue Sep 01 10:21:56 2015 +0000
+++ b/yodiwo_helpers.c Fri Sep 04 08:19:58 2015 +0000
@@ -31,7 +31,7 @@
for (i = 0; i < tableSize; i++) {
// Try to find a match
int l = (tok->end - tok->start);
- if ((tok->type == JSMN_PRIMITIVE) &&
+ if ((tok->type == JSMN_PRIMITIVE || tok->type == JSMN_STRING) &&
(l == table[i].filedNameLength) &&
(memcmp(&json[tok->start], table[i].fieldName, l) == 0))
{