Skip to content

Commit e6e8018

Browse files
authored
Fixed wdtStart flag. Closes #19
1 parent 0953c1a commit e6e8018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TheThingsNode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ void TheThingsNode::WDT_stop()
885885
WDTCSR = 0 << WDP0 | 1 << WDP1 | 0 << WDP2 | 0 << WDP3;
886886
sei();
887887

888-
this->wdtStarted = true;
888+
this->wdtStarted = false;
889889
}
890890

891891
void TheThingsNode::deepSleep(void)
@@ -906,4 +906,4 @@ void TheThingsNode::deepSleep(void)
906906
//USBCON |= (1 << USBE);
907907
USBCON &= ~_BV(FRZCLK);
908908
ADCSRA |= (1 << ADEN);
909-
}
909+
}

0 commit comments

Comments
 (0)