From a06d9c85f7475d650cc451fb0f537623c0206f5a Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 17 Dec 2018 22:27:55 -0600 Subject: Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss) Unifies time formatting in settings_list.c allows time format to display as HH:MM:SS.MSS or any consecutive combination thereof (hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss) works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING' Time is auto-ranged dependent on value Adds talk_time_intervals to allow time values to be spoken similar to display format: x Hours, x Minutes, x Seconds, x Milliseconds Table lookups merged or removed from recording, clip meter and lcd timeout -String_Choice replaced with TABLE_SETTING or INT_SETTING for these functions as well, cleaned-up cfg_vals that get saved to cfgfile RTL Languages ARE supported Negative values ARE supported Backlight on/off are now Always and Never to share formatter with LCD Timeout Added flag to allow ranged units to be locked to a minimum index Added flag to allow leading zero to be supressed from the largest unit merged talk_time_unit() and talk_time_intervals() optimized time_split() optimized format_time_auto() Backlight time-out list same as original Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd --- firmware/export/backlight.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/export/backlight.h') diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 19e5f9b91b..a1c65a3b4e 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h @@ -57,7 +57,7 @@ void backlight_set_on_button_hold(int index); #endif #if defined(HAVE_LCD_SLEEP) && defined(HAVE_LCD_SLEEP_SETTING) -void lcd_set_sleep_after_backlight_off(int index); +void lcd_set_sleep_after_backlight_off(int timeout_seconds); #endif #else /* !HAVE_BACKLIGHT */ -- cgit v1.2.3