diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-06-16 02:06:30 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-06-16 02:06:30 +0300 |
commit | 086aad0d7e5770e0be36498e5f569af5a23b111c (patch) | |
tree | 188e29a7611eeb13e24f0b2bb78e55784a50dd79 /keyboards | |
parent | ec88a0b3ccfdd22373a707e084202f1f1cf481b2 (diff) |
Make sure backlight is in the range 0-100
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/ergodox/infinity/drivers/gdisp/IS31FL3731C/gdisp_IS31FL3731C.c | 2 |
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; } |