Disable register keyword to reduce compiler warnings

Minor formatting improvements
"ps" string optimization
Removed travis envs
This commit is contained in:
cschwinne
2022-12-03 20:55:17 +01:00
parent 33f4e8cf73
commit efc476e50b
8 changed files with 20 additions and 44 deletions

View File

@@ -195,14 +195,14 @@ void handleTransitions()
}
if (tper - tperLast < 0.004) return;
tperLast = tper;
briT = briOld +((bri - briOld )*tper);
briT = briOld + ((bri - briOld) * tper);
applyBri();
}
}
//legacy method, applies values from col, effectCurrent, ... to selected segments
// legacy method, applies values from col, effectCurrent, ... to selected segments
void colorUpdated(byte callMode){
applyValuesToSelectedSegs();
stateUpdated(callMode);
@@ -213,8 +213,8 @@ void handleNightlight()
{
static unsigned long lastNlUpdate;
unsigned long now = millis();
if (now < 100 && lastNlUpdate > 0) lastNlUpdate = 0; //take care of millis() rollover
if (now - lastNlUpdate < 100) return; //allow only 10 NL updates per second
if (now < 100 && lastNlUpdate > 0) lastNlUpdate = 0; // take care of millis() rollover
if (now - lastNlUpdate < 100) return; // allow only 10 NL updates per second
lastNlUpdate = now;
if (nightlightActive)