summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/settings.c10
-rw-r--r--apps/settings_menu.c15
2 files changed, 19 insertions, 6 deletions
diff --git a/apps/settings.c b/apps/settings.c
index ea664a13ed..6588a6efd5 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -264,6 +264,7 @@ static const struct bit_entry rtc_bits[] =
264 {1, S_O(remote_invert), false, "remote invert", off_on }, 264 {1, S_O(remote_invert), false, "remote invert", off_on },
265 {5, S_O(remote_backlight_timeout), 5, "remote backlight timeout", 265 {5, S_O(remote_backlight_timeout), 5, "remote backlight timeout",
266 "off,on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90" }, 266 "off,on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90" },
267 {1, S_O(remote_flip_display), false, "remote flip display", off_on },
267#endif 268#endif
268 269
269 /* Current sum of bits: 259 (worst case) */ 270 /* Current sum of bits: 259 (worst case) */
@@ -394,7 +395,7 @@ static const struct bit_entry hd_bits[] =
394#endif 395#endif
395 396
396 /* new stuff to be added at the end */ 397 /* new stuff to be added at the end */
397 398
398 /* Sum of all bit sizes must not grow beyond 0xB8*8 = 1472 */ 399 /* Sum of all bit sizes must not grow beyond 0xB8*8 = 1472 */
399}; 400};
400 401
@@ -757,10 +758,11 @@ void settings_apply(void)
757 lcd_set_contrast(global_settings.contrast); 758 lcd_set_contrast(global_settings.contrast);
758 lcd_scroll_speed(global_settings.scroll_speed); 759 lcd_scroll_speed(global_settings.scroll_speed);
759#ifdef HAVE_REMOTE_LCD 760#ifdef HAVE_REMOTE_LCD
760 lcd_remote_set_contrast(global_settings.remote_contrast); 761 lcd_remote_set_contrast(global_settings.remote_contrast);
761 lcd_remote_set_invert_display(global_settings.remote_invert); 762 lcd_remote_set_invert_display(global_settings.remote_invert);
763 lcd_remote_set_flip(global_settings.remote_flip_display);
762 remote_backlight_set_timeout(global_settings.remote_backlight_timeout); 764 remote_backlight_set_timeout(global_settings.remote_backlight_timeout);
763#endif 765#endif
764 backlight_set_timeout(global_settings.backlight_timeout); 766 backlight_set_timeout(global_settings.backlight_timeout);
765 backlight_set_on_when_charging(global_settings.backlight_on_when_charging); 767 backlight_set_on_when_charging(global_settings.backlight_on_when_charging);
766 ata_spindown(global_settings.disk_spindown); 768 ata_spindown(global_settings.disk_spindown);
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 9826058202..d8f440c25c 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -101,6 +101,17 @@ static bool remote_invert(void)
101 lcd_remote_set_invert_display); 101 lcd_remote_set_invert_display);
102 return rc; 102 return rc;
103} 103}
104
105static bool remote_flip_display(void)
106{
107 bool rc = set_bool( str(LANG_FLIP_DISPLAY),
108 &global_settings.remote_flip_display);
109
110 lcd_remote_set_flip(global_settings.remote_flip_display);
111 lcd_remote_update();
112
113 return rc;
114}
104#endif 115#endif
105 116
106#ifdef CONFIG_BACKLIGHT 117#ifdef CONFIG_BACKLIGHT
@@ -1262,8 +1273,8 @@ static bool lcd_remote_settings_menu(void)
1262 { ID2P(LANG_BACKLIGHT), remote_backlight_timer }, 1273 { ID2P(LANG_BACKLIGHT), remote_backlight_timer },
1263 { ID2P(LANG_CONTRAST), remote_contrast }, 1274 { ID2P(LANG_CONTRAST), remote_contrast },
1264 { ID2P(LANG_INVERT), remote_invert }, 1275 { ID2P(LANG_INVERT), remote_invert },
1265/* { ID2P(LANG_FLIP_DISPLAY), remote_flip_display }, 1276 { ID2P(LANG_FLIP_DISPLAY), remote_flip_display },
1266 { ID2P(LANG_INVERT_CURSOR), invert_cursor },*/ 1277/* { ID2P(LANG_INVERT_CURSOR), invert_cursor },*/
1267 }; 1278 };
1268 1279
1269 m=menu_init( items, sizeof(items) / sizeof(*items), NULL, 1280 m=menu_init( items, sizeof(items) / sizeof(*items), NULL,