lamp improvement

This commit is contained in:
Nicolae Hodos 2017-01-21 22:36:42 +01:00
parent 9a9a431ac9
commit 7311527a8e

View File

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