Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division by zero in countFPS() #881

Open
limpens opened this issue Sep 3, 2019 · 0 comments

Comments

@limpens
Copy link

commented Sep 3, 2019

This issue maybe caused by calling FastLED.show() too frequently, but running FastLED on an ESP8266, with the CPU at 160Mhz, I occasionally have a 'millis() == 8191' and lastframe also 8191.

With the logic at https://github.com/FastLED/FastLED/blob/master/FastLED.cpp#L212 this will end up in a 'now' becoming 0 and an exception calculating the m_nFPS.

Sincerely, Eric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.