enableWdt is not be common to setup of all sensors
This commit is contained in:
parent
cd3442d96e
commit
0c29976404
@ -15,7 +15,6 @@ public:
|
||||
static void setup() {
|
||||
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
|
||||
enable_pin_interrupts();
|
||||
enableWdt();
|
||||
}
|
||||
|
||||
static void sleep() {
|
||||
|
||||
@ -22,6 +22,7 @@ void setup() {
|
||||
sensor.sendWindowState(readState());
|
||||
|
||||
TinyPower::setup();
|
||||
TinyPower::enableWdt();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
@ -24,6 +24,7 @@ void setup() {
|
||||
sensor.sendWindowState(readState());
|
||||
|
||||
TinyPower::setup();
|
||||
TinyPower::enableWdt();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
@ -21,6 +21,7 @@ void setup() {
|
||||
sensor.sendWindowState(readState());
|
||||
|
||||
TinyPower::setup();
|
||||
TinyPower::enableWdt();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user