diff options
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ void _backlight_set_brightness(int brightness) { - brightness = 32 - (brightness * 32) / 100; + if(brightness != 0) + brightness = 32 - (brightness * 32) / 100; imx233_set_gpio_output(1, 28, false); udelay(600); while(brightness-- > 0) |