From 2417d50d894708b7d841ce79b61316a17e5c8e54 Mon Sep 17 00:00:00 2001 From: J Blackman Date: Wed, 11 Jan 2023 08:06:54 +1100 Subject: [PATCH] FIX: Hard fault on dump of settings if no OSD selected (#12171) --- src/main/cli/settings.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/cli/settings.c b/src/main/cli/settings.c index 1a45bc70d..07265c5bf 100644 --- a/src/main/cli/settings.c +++ b/src/main/cli/settings.c @@ -1467,11 +1467,10 @@ const clivalue_t valueTable[] = { { "osd_aux_symbol", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { 0, 255 }, PG_OSD_CONFIG, offsetof(osdConfig_t, aux_symbol) }, { "osd_canvas_width", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { 0, 63 }, PG_OSD_CONFIG, offsetof(osdConfig_t, canvas_cols) }, { "osd_canvas_height", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { 0, 31 }, PG_OSD_CONFIG, offsetof(osdConfig_t, canvas_rows) }, -#endif // end of #ifdef USE_OSD - #ifdef USE_CRAFTNAME_MSGS { "osd_craftname_msgs", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_OSD_CONFIG, offsetof(osdConfig_t, osd_craftname_msgs) }, #endif //USE_CRAFTNAME_MSGS +#endif // end of #ifdef USE_OSD // PG_SYSTEM_CONFIG #if defined(STM32F4) || defined(STM32G4) -- 2.11.4.GIT