m5stack / M5StickC

M5StickC Arduino Library
MIT License
477 stars 222 forks source link

GFXfont: change type of first and last struct members to uint16_t #61

Closed francescolavra closed 4 years ago

francescolavra commented 4 years ago

These struct members are accessed via pgm_read_word(), which is used with 16-bit data types. The current declaration as uint8_t causes incorrect values to be retrieved, which may lead to software crashes or lockups.

EeeeBin commented 4 years ago

Thanks :)