Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Division by zero in countFPS() #881
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.