qmk_firmware/drivers
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
..
arm Add thread safety around i2c_master for ChibiOS/ARM. 2020-02-01 17:44:39 +11:00
avr Update split serial code to use driver pattern (#7990) 2020-01-24 13:50:51 +00:00
boards Refactor stm32duino f103 keyboards to use new central board config files (#7706) 2020-01-27 22:39:30 +00:00
eeprom format code according to conventions [skip ci] 2020-01-24 02:15:29 +00:00
gpio
haptic Completely remove i2c_transmit_receive function (#7686) 2019-12-22 13:50:08 +00:00
issi Run clang-format manually to fix recently changed files (#7934) 2020-01-19 16:30:34 +00:00
oled Fix out of bound OLED font access (#8145) 2020-02-11 21:38:20 +00:00
qwiic
ugfx/gdisp