bugfix: prevent IR malfunction with long LED strips / high framerates

This commit is contained in:
Frank
2024-02-18 17:06:59 +01:00
parent 0628152297
commit e833b898e4

View File

@@ -752,7 +752,8 @@ void initIR()
void handleIR()
{
if (irEnabled > 0 && millis() - irCheckedTime > 120 && !strip.isUpdating())
if ((irEnabled < 1) || (strip.isUpdating() && (millis() - irCheckedTime < 120))) return; // WLEDMM be nice, but not too nice
if (irEnabled > 0 && millis() - irCheckedTime > 120) // WLEDMM
{
irCheckedTime = millis();
if (irEnabled > 0)