lexus2k / lcdgfx

Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
MIT License
391 stars 55 forks source link

Fix integer overflow for framerates less than 4 fps #114

Closed dlitz closed 8 months ago

dlitz commented 8 months ago

This increases m_FrameDurationMs from 8 to 16 bits.

Using 8 bits for m_FrameDurationMs meant it would overflow above 255ms, so attempting to use framerates below 4 would trigger frame refreshes too often.

CLAassistant commented 8 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.