0.10.2-rc

This commit is contained in:
cschwinne
2020-08-30 23:31:58 +02:00
parent 55f071e4a0
commit 41a84160ec
8 changed files with 817 additions and 481 deletions

View File

@@ -291,12 +291,14 @@ void handleNightlight()
//also handle preset cycle here
if (presetCyclingEnabled && (millis() - presetCycledTime > (100*presetCycleTime)))
{
if (presetCycCurr < presetCycleMin) presetCycCurr = presetCycleMin;
presetCycledTime = millis();
if (bri == 0 || nightlightActive) return;
if (presetCycCurr < presetCycleMin || presetCycCurr > presetCycleMax) presetCycCurr = presetCycleMin;
applyPreset(presetCycCurr,presetApplyBri);
presetCycCurr++; if (presetCycCurr > presetCycleMax) presetCycCurr = presetCycleMin;
presetCycCurr++;
if (presetCycCurr > 16) presetCycCurr = 1;
colorUpdated(NOTIFIER_CALL_MODE_PRESET_CYCLE);
presetCycledTime = millis();
}
}