Skip to content

Commit

Permalink
Possible fix for Aircoookie#3541
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek authored and DedeHai committed Jan 27, 2024
1 parent d350011 commit ea76a98
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 354 deletions.
6 changes: 2 additions & 4 deletions wled00/led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ void stateUpdated(byte callMode) {
if (strip.getTransition() == 0) {
jsonTransitionOnce = false;
transitionActive = false;
applyFinalBri();
strip.trigger();
return;
}

Expand All @@ -162,7 +160,7 @@ void updateInterfaces(uint8_t callMode)

sendDataWs();
lastInterfaceUpdate = millis();
interfaceUpdateCallMode = 0; //disable further updates
interfaceUpdateCallMode = 0; //disable

if (callMode == CALL_MODE_WS_SEND) return;

Expand Down Expand Up @@ -225,7 +223,7 @@ void handleNightlight()
if (!nightlightActiveOld) //init
{
nightlightStartTime = millis();
nightlightDelayMs = (unsigned)(nightlightDelayMins*60000);
nightlightDelayMs = (int)(nightlightDelayMins*60000);
nightlightActiveOld = true;
briNlT = bri;
for (byte i=0; i<4; i++) colNlT[i] = col[i]; // remember starting color
Expand Down
Loading

0 comments on commit ea76a98

Please sign in to comment.