Skip to content

Commit 7a6ae92

Browse files
committed
upd
1 parent f440172 commit 7a6ae92

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

firmware/GyverLamp_v1.0/GyverLamp_v1.0.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ boolean settChanged = false;
118118

119119
void setup() {
120120
ESP.wdtDisable();
121-
ESP.wdtEnable(WDTO_8S);
121+
//ESP.wdtEnable(WDTO_8S);
122122
delay(1000);
123123
// ЛЕНТА
124124
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS)/*.setCorrection( TypicalLEDStrip )*/;

firmware/GyverLamp_v1.0/effectTicker.ino

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ uint32_t effTimer;
22

33
void effectsTick() {
44
if (!dawnFlag) {
5-
int thisDelay;
6-
if (currentMode < 5) thisDelay = modes[currentMode].speed;
7-
else thisDelay = 50;
8-
if (ONflag && millis() - effTimer >= thisDelay) {
5+
if (ONflag && millis() - effTimer >= ((currentMode < 5) ? modes[currentMode].speed : 50) ) {
96
effTimer = millis();
107
switch (currentMode) {
118
case 0: sparklesRoutine();

0 commit comments

Comments
 (0)