From 764d82d4fd9edad7878d1cf70f5a20fa76de72ad Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 10 May 2024 14:16:40 +0200 Subject: [PATCH] Remove canvas configuration in cli (#13595) * Remove canvas configuration in cli * Add gating for OSD_CANVAS_SIZE_DEBUG --- src/main/cli/settings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/cli/settings.c b/src/main/cli/settings.c index 7c81b4cf41..7d81f09f0c 100644 --- a/src/main/cli/settings.c +++ b/src/main/cli/settings.c @@ -1522,8 +1522,10 @@ const clivalue_t valueTable[] = { { "osd_aux_channel", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { 1, MAX_SUPPORTED_RC_CHANNEL_COUNT }, PG_OSD_CONFIG, offsetof(osdConfig_t, aux_channel) }, { "osd_aux_scale", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { 1, 1000 }, PG_OSD_CONFIG, offsetof(osdConfig_t, aux_scale) }, { "osd_aux_symbol", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { 0, 255 }, PG_OSD_CONFIG, offsetof(osdConfig_t, aux_symbol) }, +#ifdef OSD_CANVAS_SIZE_DEBUG { "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 #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