summaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-06-16 01:06:30 +0200
committerFred Sundvik <fsundvik@gmail.com>2017-06-16 01:06:30 +0200
commit086aad0d7e5770e0be36498e5f569af5a23b111c (patch)
tree188e29a7611eeb13e24f0b2bb78e55784a50dd79 /keyboards/ergodox
parentec88a0b3ccfdd22373a707e084202f1f1cf481b2 (diff)
downloadqmk_firmware-086aad0d7e5770e0be36498e5f569af5a23b111c.tar.gz
qmk_firmware-086aad0d7e5770e0be36498e5f569af5a23b111c.tar.xz
Make sure backlight is in the range 0-100
Diffstat (limited to 'keyboards/ergodox')
-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 0b48783d6..b4a5c84b0 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;
}