diff --git a/docs/Settings.md b/docs/Settings.md index 343ddebe30..1fe695deca 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -441,7 +441,6 @@ | osd_right_sidebar_scroll_step | 0 | | 255 | Same as left_sidebar_scroll_step, but for the right sidebar | | osd_row_shiftdown | 0 | 0 | 1 | Number of rows to shift the OSD display (increase if top rows are cut off) | | osd_rssi_alarm | 20 | 0 | 100 | Value below which to make the OSD RSSI indicator blink | -| osd_rtc_time_show_seconds | OFF | | | Enable to show seconds in current time display. | | osd_sidebar_height | 3 | 0 | 5 | Height of sidebars in rows. 0 leaves only the level indicator arrows (Not for pixel OSD) | | osd_sidebar_horizontal_offset | 0 | -128 | 127 | Sidebar horizontal offset from default position. Positive values move the sidebars closer to the edges. | | osd_sidebar_scroll_arrows | OFF | | | | diff --git a/src/main/fc/settings.yaml b/src/main/fc/settings.yaml index e93820d2d0..6864eadfcf 100644 --- a/src/main/fc/settings.yaml +++ b/src/main/fc/settings.yaml @@ -3254,11 +3254,6 @@ groups: field: main_voltage_decimals min: 1 max: 2 - - name: osd_rtc_time_show_seconds - description: "Enable to show seconds in current time display." - field: rtc_time_show_seconds - type: bool - default_value: OFF - name: osd_coordinate_digits field: coordinate_digits min: 8 diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 8f1fb05f5e..f0c4af8c24 100644 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -2283,11 +2283,7 @@ static bool osdDrawSingleElement(uint8_t item) dateTime_t dateTime; rtcGetDateTimeLocal(&dateTime); buff[0] = SYM_CLOCK; - if (osdConfig()->rtc_time_show_seconds) { - tfp_sprintf(buff + 1, "%02u:%02u:%02u", dateTime.hours, dateTime.minutes, dateTime.seconds); - } else { - tfp_sprintf(buff + 1, "%02u:%02u", dateTime.hours, dateTime.minutes); - } + tfp_sprintf(buff + 1, "%02u:%02u:%02u", dateTime.hours, dateTime.minutes, dateTime.seconds); break; } @@ -2922,7 +2918,6 @@ PG_RESET_TEMPLATE(osdConfig_t, osdConfig, .units = SETTING_OSD_UNITS_DEFAULT, .main_voltage_decimals = SETTING_OSD_MAIN_VOLTAGE_DECIMALS_DEFAULT, - .rtc_time_show_seconds = SETTING_OSD_RTC_TIME_SHOW_SECONDS_DEFAULT, #ifdef USE_WIND_ESTIMATOR .estimations_wind_compensation = SETTING_OSD_ESTIMATIONS_WIND_COMPENSATION_DEFAULT, diff --git a/src/main/io/osd.h b/src/main/io/osd.h index d08ee95956..8f4e4d4bf9 100644 --- a/src/main/io/osd.h +++ b/src/main/io/osd.h @@ -375,7 +375,6 @@ typedef struct osdConfig_s { uint8_t crsf_lq_format; uint8_t sidebar_height; // sidebar height in rows, 0 turns off sidebars leaving only level indicator arrows uint8_t telemetry; // use telemetry on displayed pixel line 0 - bool rtc_time_show_seconds; // show seconds in current time display when enabled } osdConfig_t;