enableWdt is not be common to setup of all sensors

This commit is contained in:
Nicu Hodos 2017-01-29 19:03:14 +01:00
parent cd3442d96e
commit 0c29976404
4 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,6 @@ public:
static void setup() {
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
enable_pin_interrupts();
enableWdt();
}
static void sleep() {

View File

@ -22,6 +22,7 @@ void setup() {
sensor.sendWindowState(readState());
TinyPower::setup();
TinyPower::enableWdt();
}
void loop() {

View File

@ -24,6 +24,7 @@ void setup() {
sensor.sendWindowState(readState());
TinyPower::setup();
TinyPower::enableWdt();
}
void loop() {

View File

@ -21,6 +21,7 @@ void setup() {
sensor.sendWindowState(readState());
TinyPower::setup();
TinyPower::enableWdt();
}
void loop() {