UM rotary bugfix

fixing a crash that was caused by calling updateInterfaces() too often.
This commit is contained in:
Frank
2023-03-13 19:13:46 +01:00
parent 6d1fd3aaa0
commit 2f274399f3

View File

@@ -514,7 +514,8 @@ public:
// 6: fx changed 7: hue 8: preset cycle 9: blynk 10: alexa
//setValuesFromFirstSelectedSeg(); //to make transition work on main segment (should no longer be required)
stateUpdated(CALL_MODE_BUTTON);
updateInterfaces(CALL_MODE_BUTTON);
if ((millis() - lastInterfaceUpdate) > INTERFACE_UPDATE_COOLDOWN) // WLEDMM respect cooldown times, to avoid crash in AsyncWebSocketMessageBuffer
updateInterfaces(CALL_MODE_BUTTON);
}
void changeBrightness(bool increase) {