mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
SITL: allow sensors not to be present in Morse
This commit is contained in:
parent
e569e3e1e6
commit
debea191c9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user