SITL: allow sensors not to be present in Morse

This commit is contained in:
Andrew Tridgell 2018-12-04 20:49:40 +11:00
parent e569e3e1e6
commit debea191c9

View File

@ -125,8 +125,8 @@ bool Morse::parse_sensors(const char *json)
/* look for section header */
const char *p = strstr(json, key.section);
if (!p) {
printf("Failed to find section %s\n", key.section);
return false;
// we don't have this sensor
continue;
}
p += strlen(key.section)+1;