Compare commits
2 Commits
556f277016
...
5ca6425918
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ca6425918 | |||
| 9b7b08e9cb |
@ -200,6 +200,7 @@ private:
|
||||
}
|
||||
} else if (gridPowerDeltaAlarmSince > 0) {
|
||||
Serial.printf("[RELAY] \"%s\": Powering off CANCELED!\n", name.c_str());
|
||||
gridPowerDeltaAlarmSince = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -219,6 +220,7 @@ private:
|
||||
}
|
||||
} else if (gridPowerDeltaAlarmSince > 0) {
|
||||
Serial.printf("[RELAY] \"%s\": Powering on CANCELED!\n", name.c_str());
|
||||
gridPowerDeltaAlarmSince = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ Button button0(13, true, true, [](const ButtonEvent event) { buttonCallback(rela
|
||||
Relay relay0(0, "fallback/relay0", "RELAY #0", 15, false, true);
|
||||
|
||||
#ifdef GosundSP111
|
||||
Output relay0Led("relay0Led", 3, true, false);
|
||||
Output relay0Led("relay0Led", 2, true, false);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
7
src/io.h
7
src/io.h
@ -36,6 +36,9 @@ inline void ioSetup() {
|
||||
status.setup();
|
||||
button0.setup();
|
||||
relay0.setup();
|
||||
#ifdef GosundSP111
|
||||
relay0Led.setup();
|
||||
#endif
|
||||
#ifdef Sonoff4ChPro
|
||||
button1.setup();
|
||||
button2.setup();
|
||||
@ -50,6 +53,10 @@ inline void ioLoop() {
|
||||
status.loop();
|
||||
button0.loop();
|
||||
relay0.loop();
|
||||
#ifdef GosundSP111
|
||||
relay0Led.set(relay0.get());
|
||||
relay0Led.loop();
|
||||
#endif
|
||||
#ifdef Sonoff4ChPro
|
||||
button1.loop();
|
||||
button2.loop();
|
||||
|
||||
@ -19,7 +19,4 @@ void loop() {
|
||||
wifiLoop();
|
||||
ioLoop();
|
||||
ArduinoOTA.handle();
|
||||
#ifdef GosundSP111
|
||||
relay0Led.set(relay0.get());
|
||||
#endif
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user