Workaround - Suppress empty LED updates

This commit is contained in:
LordGrey 2023-01-25 22:00:57 +01:00
parent af2fa7bfd5
commit c21113d039

View File

@ -510,6 +510,8 @@ void LinearColorSmoothing::clearRememberedFrames()
void LinearColorSmoothing::queueColors(const std::vector<ColorRgb> &ledColors) void LinearColorSmoothing::queueColors(const std::vector<ColorRgb> &ledColors)
{ {
if (ledColors.size() > 0)
{
if (_outputDelay == 0) if (_outputDelay == 0)
{ {
// No output delay => immediate write // No output delay => immediate write
@ -536,6 +538,7 @@ void LinearColorSmoothing::queueColors(const std::vector<ColorRgb> &ledColors)
} }
} }
} }
}
} }
void LinearColorSmoothing::clearQueuedColors() void LinearColorSmoothing::clearQueuedColors()