summaryrefslogtreecommitdiff
path: root/keyboards/ergodox/infinity/drivers
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-06-16 02:06:30 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-06-16 02:06:30 +0300
commit086aad0d7e5770e0be36498e5f569af5a23b111c (patch)
tree188e29a7611eeb13e24f0b2bb78e55784a50dd79 /keyboards/ergodox/infinity/drivers
parentec88a0b3ccfdd22373a707e084202f1f1cf481b2 (diff)
Make sure backlight is in the range 0-100
Diffstat (limited to 'keyboards/ergodox/infinity/drivers')
-rw-r--r--keyboards/ergodox/infinity/drivers/gdisp/IS31FL3731C/gdisp_IS31FL3731C.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/ergodox/infinity/drivers/gdisp/IS31FL3731C/gdisp_IS31FL3731C.c b/keyboards/ergodox/infinity/drivers/gdisp/IS31FL3731C/gdisp_IS31FL3731C.c
index 0b48783d6a..b4a5c84b0a 100644
--- a/keyboards/ergodox/infinity/drivers/gdisp/IS31FL3731C/gdisp_IS31FL3731C.c
+++ b/keyboards/ergodox/infinity/drivers/gdisp/IS31FL3731C/gdisp_IS31FL3731C.c
@@ -302,7 +302,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
if (g->g.Backlight == (unsigned)g->p.ptr)
return;
unsigned val = (unsigned)g->p.ptr;
- g->g.Backlight = val > 255 ? 255 : val;
+ g->g.Backlight = val > 100 ? 100 : val;
g->flags |= GDISP_FLG_NEEDFLUSH;
return;
}