Skip to content

Commit 0580527

Browse files
committed
fixed issue sending out nightMode to front gate
1 parent 2391aaf commit 0580527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ESP8266-Remote-Blynk-Switch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ BLYNK_WRITE(vPIN_BUTTON_MANUAL) { // manual button
3030
}
3131

3232
BLYNK_WRITE(vPIN_TIME) { // timer switch
33-
gate.virtualWrite(vPIN_BRIDGE_GATE, param.asInt());
3433
if (param.asInt()) {
3534
Switch_ON();
35+
gate.virtualWrite(vPIN_BRIDGE_GATE, param.asInt());
3636
} else {
3737
Switch_OFF();
3838
}

0 commit comments

Comments
 (0)