1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Remove option

This commit is contained in:
breadoven 2021-05-19 16:11:39 +01:00
parent cea6a580d8
commit 96b934a00e
4 changed files with 1 additions and 13 deletions

View file

@ -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 | | | |

View file

@ -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

View file

@ -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,

View file

@ -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;