aboutsummaryrefslogtreecommitdiffstats
path: root/drv_picoLCDGraphic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drv_picoLCDGraphic.c')
-rw-r--r--drv_picoLCDGraphic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drv_picoLCDGraphic.c b/drv_picoLCDGraphic.c
index f3a98c9..fa7e15b 100644
--- a/drv_picoLCDGraphic.c
+++ b/drv_picoLCDGraphic.c
@@ -432,8 +432,8 @@ static int drv_pLG_backlight(int backlight)
if (backlight < 0)
backlight = 0;
- if (backlight >= 1)
- backlight = 200;
+ if (backlight > 255)
+ backlight = 255;
cmd[1] = backlight;
drv_pLG_send(cmd, 2);