From 778df747292903ebc07558e1941bd108bfe8095d Mon Sep 17 00:00:00 2001 From: Bruce Luckcuck Date: Sun, 9 Jun 2019 18:34:57 -0400 Subject: [PATCH] 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 d6ab25c89a..460df0346c 100644 --- a/src/main/cli/settings.c +++ b/src/main/cli/settings.c @@ -1231,6 +1231,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 a5397d4a2f..5df46e119c 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