summaryrefslogtreecommitdiff
path: root/apps/plugins/lamp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lamp.c')
-rw-r--r--apps/plugins/lamp.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c
index 6c9ae6626d..42a2353b2a 100644
--- a/apps/plugins/lamp.c
+++ b/apps/plugins/lamp.c
@@ -103,9 +103,8 @@ enum plugin_status plugin_start(const void* parameter)
103 int current_brightness = MAX_BRIGHTNESS_SETTING; 103 int current_brightness = MAX_BRIGHTNESS_SETTING;
104 backlight_brightness_set(MAX_BRIGHTNESS_SETTING); 104 backlight_brightness_set(MAX_BRIGHTNESS_SETTING);
105#endif /* HAVE_BACKLIGHT_BRIGHTNESS */ 105#endif /* HAVE_BACKLIGHT_BRIGHTNESS */
106#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS 106
107 buttonlight_brightness_set(MAX_BRIGHTNESS_SETTING); 107 buttonlight_brightness_set(MAX_BRIGHTNESS_SETTING);
108#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
109 108
110#ifdef HAVE_LCD_INVERT 109#ifdef HAVE_LCD_INVERT
111#ifdef HAVE_NEGATIVE_LCD 110#ifdef HAVE_NEGATIVE_LCD
@@ -116,9 +115,8 @@ enum plugin_status plugin_start(const void* parameter)
116#endif /* HAVE_LCD_INVERT */ 115#endif /* HAVE_LCD_INVERT */
117 116
118 backlight_force_on(); 117 backlight_force_on();
119#ifdef HAVE_BUTTON_LIGHT
120 buttonlight_force_on(); 118 buttonlight_force_on();
121#endif /* HAVE_BUTTON_LIGHT */ 119
122 120
123 rb->lcd_clear_display(); 121 rb->lcd_clear_display();
124 rb->lcd_update(); 122 rb->lcd_update();
@@ -207,20 +205,17 @@ enum plugin_status plugin_start(const void* parameter)
207 205
208 /* restore */ 206 /* restore */
209 backlight_use_settings(); 207 backlight_use_settings();
210#ifdef HAVE_BUTTON_LIGHT 208
211 buttonlight_use_settings(); 209 buttonlight_use_settings();
212#endif /* HAVE_BUTTON_LIGHT */
213 210
214#ifdef HAVE_LCD_INVERT 211#ifdef HAVE_LCD_INVERT
215 rb->lcd_set_invert_display(rb->global_settings->invert); 212 rb->lcd_set_invert_display(rb->global_settings->invert);
216#endif /* HAVE_LCD_INVERT */ 213#endif /* HAVE_LCD_INVERT */
217 214
218#ifdef HAVE_BACKLIGHT_BRIGHTNESS 215
219 backlight_brightness_use_setting(); 216 backlight_brightness_use_setting();
220#endif /* HAVE_BACKLIGHT_BRIGHTNESS */ 217
221#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
222 buttonlight_brightness_use_setting(); 218 buttonlight_brightness_use_setting();
223#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
224 219
225#if LCD_DEPTH > 1 220#if LCD_DEPTH > 1
226 rb->lcd_set_background(bg_color); 221 rb->lcd_set_background(bg_color);