qmk-dactyl-manuform-a/drivers/oled
Ted M Lin 9456832a3b
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.
2020-02-11 21:38:20 +00:00
..
glcdfont.c clang-format changes 2019-08-30 15:01:52 -07:00
licenses.txt Removed / replaced questionable logos and added licenses file for safe logos 2019-04-20 08:05:10 -07:00
oled_driver.c Fix out of bound OLED font access (#8145) 2020-02-11 21:38:20 +00:00
oled_driver.h Fix out of bound OLED font access (#8145) 2020-02-11 21:38:20 +00:00