From 3b0e087dc80b89ead2327daa83bc6d39c33bdbb8 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Wed, 12 Jun 2019 13:21:56 +1200 Subject: [PATCH] Add missing CLI parm for ESC RPM Frequency OSD element (#8404) Add missing CLI parm for ESC RPM Frequency OSD element --- src/main/cli/settings.c | 1 + src/main/osd/osd_elements.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/cli/settings.c b/src/main/cli/settings.c index 585c128ba0..14559b837f 100644 --- a/src/main/cli/settings.c +++ b/src/main/cli/settings.c @@ -1191,6 +1191,7 @@ const clivalue_t valueTable[] = { #endif { "osd_esc_tmp_pos", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { 0, OSD_POSCFG_MAX }, PG_OSD_CONFIG, offsetof(osdConfig_t, item_pos[OSD_ESC_TMP]) }, { "osd_esc_rpm_pos", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { 0, OSD_POSCFG_MAX }, PG_OSD_CONFIG, offsetof(osdConfig_t, item_pos[OSD_ESC_RPM]) }, + { "osd_esc_rpm_freq_pos", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { 0, OSD_POSCFG_MAX }, PG_OSD_CONFIG, offsetof(osdConfig_t, item_pos[OSD_ESC_RPM_FREQ]) }, { "osd_rtc_date_time_pos", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { 0, OSD_POSCFG_MAX }, PG_OSD_CONFIG, offsetof(osdConfig_t, item_pos[OSD_RTC_DATETIME]) }, { "osd_adjustment_range_pos", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { 0, OSD_POSCFG_MAX }, PG_OSD_CONFIG, offsetof(osdConfig_t, item_pos[OSD_ADJUSTMENT_RANGE]) }, { "osd_flip_arrow_pos", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { 0, OSD_POSCFG_MAX }, PG_OSD_CONFIG, offsetof(osdConfig_t, item_pos[OSD_FLIP_ARROW]) }, diff --git a/src/main/osd/osd_elements.c b/src/main/osd/osd_elements.c index 2d7520c4b1..cc41ecefcf 100644 --- a/src/main/osd/osd_elements.c +++ b/src/main/osd/osd_elements.c @@ -33,8 +33,10 @@ Create the function to "draw" the element. It should be named like "osdElementSomething()" where the "Something" describes the element. - Finally add the mapping from the element ID added in the first step to the function + Add the mapping from the element ID added in the first step to the function created in the third step to the osdElementDrawFunction array. + + Finally add a CLI parameter for the new element in cli/settings.c. */ #include