summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 8dcad6bae4..d2b220f893 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -647,6 +647,14 @@ static const struct bit_entry hd_bits[] =
647 {8|SIGNED, S_O(rec_agc_maxgain_line), 96, "agc maximum line gain", NULL}, 647 {8|SIGNED, S_O(rec_agc_maxgain_line), 96, "agc maximum line gain", NULL},
648 {3, S_O(rec_agc_cliptime), 1, "agc cliptime", "0.2s,0.4s,0.6s,0.8,1s"}, 648 {3, S_O(rec_agc_cliptime), 1, "agc cliptime", "0.2s,0.4s,0.6s,0.8,1s"},
649#endif 649#endif
650
651#ifdef HAVE_REMOTE_LCD
652#ifdef HAS_REMOTE_BUTTON_HOLD
653 {2, S_O(remote_backlight_on_button_hold), 0, "remote backlight on button hold",
654 "normal,off,on" },
655#endif
656#endif
657
650 /* If values are just added to the end, no need to bump the version. */ 658 /* If values are just added to the end, no need to bump the version. */
651 /* new stuff to be added at the end */ 659 /* new stuff to be added at the end */
652 660
@@ -1108,7 +1116,10 @@ void settings_apply(void)
1108#ifdef CONFIG_CHARGING 1116#ifdef CONFIG_CHARGING
1109 remote_backlight_set_timeout_plugged(global_settings.remote_backlight_timeout_plugged); 1117 remote_backlight_set_timeout_plugged(global_settings.remote_backlight_timeout_plugged);
1110#endif 1118#endif
1119#ifdef HAS_REMOTE_BUTTON_HOLD
1120 remote_backlight_set_on_button_hold(global_settings.remote_backlight_on_button_hold);
1111#endif 1121#endif
1122#endif /* HAVE_REMOTE_LCD */
1112#ifdef CONFIG_BACKLIGHT 1123#ifdef CONFIG_BACKLIGHT
1113 backlight_set_timeout(global_settings.backlight_timeout); 1124 backlight_set_timeout(global_settings.backlight_timeout);
1114#ifdef CONFIG_CHARGING 1125#ifdef CONFIG_CHARGING