diff options
author | Ted M Lin <tedmlin@gmail.com> | 2020-02-11 16:38:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 21:38:20 +0000 |
commit | 9456832a3bba4dd766a26a6286e78d3e88e4efce (patch) | |
tree | d5dfa046e2a8c08c9f8a8e597732f7764f453ee6 /quantum/visualizer/lcd_backlight_keyframes.h | |
parent | 78e060f55adef8de358ba4bf7f5d5854a70dd421 (diff) |
Fix out of bound OLED font access (#8145)
* Fix out of bound OLED font access
The default font is 1344 bytes, or a total of 224 glyphs (each 6-bytes wide).
OLED_FONT_END defaults to 224, which if used will then index off the end of
the font array. So either the documentation or code is wrong.
Instead of figuring out the rewording of the documentation, just change
the OLED_FONT_END default value to 223, to match the documentation and code.
* Add static assert to check array size
Build bomb if the font array size doesn't match to the defines.
Diffstat (limited to 'quantum/visualizer/lcd_backlight_keyframes.h')
0 files changed, 0 insertions, 0 deletions