lamp improvement

This commit is contained in:
Nicu Hodos 2017-01-21 22:36:42 +01:00
parent de51a74d03
commit 3a1c91b9cc

View File

@ -80,6 +80,7 @@ ISR(PCINT0_vect) {
}
ISR(WDT_vect) {
disableWdt();
debug("wdt");
byte state = digitalRead(SWITCH);
if (state == LOW) {
@ -87,7 +88,6 @@ ISR(WDT_vect) {
} else {
sendCommand(true);
}
disableWdt();
}
void sleep() {