diff options
-rw-r--r-- | firmware/export/config/sansafuzeplus.h | 2 | ||||
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h index 2d744125c6..8039b8699f 100644 --- a/firmware/export/config/sansafuzeplus.h +++ b/firmware/export/config/sansafuzeplus.h | |||
@@ -109,7 +109,7 @@ | |||
109 | #define HAVE_BACKLIGHT_BRIGHTNESS | 109 | #define HAVE_BACKLIGHT_BRIGHTNESS |
110 | 110 | ||
111 | /* Main LCD backlight brightness range and defaults */ | 111 | /* Main LCD backlight brightness range and defaults */ |
112 | #define MIN_BRIGHTNESS_SETTING 1 | 112 | #define MIN_BRIGHTNESS_SETTING 0 |
113 | #define MAX_BRIGHTNESS_SETTING 80 | 113 | #define MAX_BRIGHTNESS_SETTING 80 |
114 | #define DEFAULT_BRIGHTNESS_SETTING 40 | 114 | #define DEFAULT_BRIGHTNESS_SETTING 40 |
115 | 115 | ||
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c index 90bd8b556b..6e13c0419c 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | |||
@@ -28,7 +28,8 @@ | |||
28 | 28 | ||
29 | void _backlight_set_brightness(int brightness) | 29 | void _backlight_set_brightness(int brightness) |
30 | { | 30 | { |
31 | brightness = 32 - (brightness * 32) / 100; | 31 | if(brightness != 0) |
32 | brightness = 32 - (brightness * 32) / 100; | ||
32 | imx233_set_gpio_output(1, 28, false); | 33 | imx233_set_gpio_output(1, 28, false); |
33 | udelay(600); | 34 | udelay(600); |
34 | while(brightness-- > 0) | 35 | while(brightness-- > 0) |