From debea191c99b8a747a6ce9948fefe4f6a5b8cdaf Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 Dec 2018 20:49:40 +1100 Subject: [PATCH] SITL: allow sensors not to be present in Morse --- libraries/SITL/SIM_Morse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SITL/SIM_Morse.cpp b/libraries/SITL/SIM_Morse.cpp index 02a0773ad1..9f2715da73 100644 --- a/libraries/SITL/SIM_Morse.cpp +++ b/libraries/SITL/SIM_Morse.cpp @@ -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;