diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/backlight.h | 4 | ||||
-rw-r--r-- | firmware/export/button.h | 3 | ||||
-rw-r--r-- | firmware/export/config.h | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 1cd6c47f36..2873666dd8 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h | |||
@@ -26,7 +26,7 @@ void backlight_on(void); | |||
26 | void backlight_off(void); | 26 | void backlight_off(void); |
27 | void backlight_set_timeout(int index); | 27 | void backlight_set_timeout(int index); |
28 | 28 | ||
29 | #ifdef CONFIG_BACKLIGHT | 29 | #if CONFIG_BACKLIGHT |
30 | void backlight_init(void); | 30 | void backlight_init(void); |
31 | 31 | ||
32 | #if defined(IAUDIO_X5) && !defined(SIMULATOR) | 32 | #if defined(IAUDIO_X5) && !defined(SIMULATOR) |
@@ -54,7 +54,7 @@ void lcd_set_sleep_after_backlight_off(int index); | |||
54 | extern const signed char lcd_sleep_timeout_value[]; | 54 | extern const signed char lcd_sleep_timeout_value[]; |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #else /* ndef CONFIG_BACKLIGHT */ | 57 | #else /* CONFIG_BACKLIGHT == 0 */ |
58 | #define backlight_init() | 58 | #define backlight_init() |
59 | #endif /* CONFIG_BACKLIGHT */ | 59 | #endif /* CONFIG_BACKLIGHT */ |
60 | 60 | ||
diff --git a/firmware/export/button.h b/firmware/export/button.h index 102d542d27..ea3effcaba 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -1,4 +1,3 @@ | |||
1 | |||
2 | /*************************************************************************** | 1 | /*************************************************************************** |
3 | * __________ __ ___. | 2 | * __________ __ ___. |
4 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
@@ -34,7 +33,7 @@ void button_clear_queue(void); | |||
34 | #ifdef HAVE_LCD_BITMAP | 33 | #ifdef HAVE_LCD_BITMAP |
35 | void button_set_flip(bool flip); /* turn 180 degrees */ | 34 | void button_set_flip(bool flip); /* turn 180 degrees */ |
36 | #endif | 35 | #endif |
37 | #ifdef CONFIG_BACKLIGHT | 36 | #if CONFIG_BACKLIGHT |
38 | void set_backlight_filter_keypress(bool value); | 37 | void set_backlight_filter_keypress(bool value); |
39 | #ifdef HAVE_REMOTE_LCD | 38 | #ifdef HAVE_REMOTE_LCD |
40 | void set_remote_backlight_filter_keypress(bool value); | 39 | void set_remote_backlight_filter_keypress(bool value); |
diff --git a/firmware/export/config.h b/firmware/export/config.h index 8283b37fc8..1a3e0be325 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -230,6 +230,10 @@ | |||
230 | #define CONFIG_LED 0 | 230 | #define CONFIG_LED 0 |
231 | #endif | 231 | #endif |
232 | 232 | ||
233 | #ifndef CONFIG_BACKLIGHT | ||
234 | #define CONFIG_BACKLIGHT 0 | ||
235 | #endif | ||
236 | |||
233 | #ifndef CONFIG_CHARGING | 237 | #ifndef CONFIG_CHARGING |
234 | #define CONFIG_CHARGING 0 | 238 | #define CONFIG_CHARGING 0 |
235 | #endif | 239 | #endif |