diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 6160ef56..c0949ae3 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -1275,7 +1275,7 @@ void WS2812FX::show(void) { size_t diff = now - _lastShow; size_t fpsCurr = 200; if (diff > 0) fpsCurr = 1000 / diff; - _cumulativeFps = (3 * _cumulativeFps + fpsCurr) >> 2; + _cumulativeFps = (3 * _cumulativeFps + fpsCurr +2) >> 2; // "+2" for proper rounding (2/4 = 0.5) _lastShow = now; }