Skip to content

Commit

Permalink
fixed issue sending out nightMode to front gate
Browse files Browse the repository at this point in the history
  • Loading branch information
jaminNZx committed Mar 29, 2017
1 parent 2391aaf commit 0580527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESP8266-Remote-Blynk-Switch.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ BLYNK_WRITE(vPIN_BUTTON_MANUAL) { // manual button
}

BLYNK_WRITE(vPIN_TIME) { // timer switch
gate.virtualWrite(vPIN_BRIDGE_GATE, param.asInt());
if (param.asInt()) {
Switch_ON();
gate.virtualWrite(vPIN_BRIDGE_GATE, param.asInt());
} else {
Switch_OFF();
}
Expand Down

0 comments on commit 0580527

Please sign in to comment.