diff options
Diffstat (limited to 'sensor')
-rw-r--r-- | sensor/thermostat.ino | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sensor/thermostat.ino b/sensor/thermostat.ino index 9dbccf8..36058d2 100644 --- a/sensor/thermostat.ino +++ b/sensor/thermostat.ino @@ -4,6 +4,7 @@ #include <esp_bt.h> #include "BLEDevice.h" #include "Ticker.h" +#include "esp_system.h" static BLEUUID thermo_service_uuid("11111111-2222-3333-4444-000000000000"); static BLEUUID thermo_temp_uuid("11111111-2222-3333-4444-000000000001"); @@ -128,7 +129,7 @@ void teardown_and_sleep(int next_time) { void watchdog_cb() { Serial.println("watchdog"); - teardown_and_sleep(ON_ERROR_SLEEP_TIME); + esp_restart(); } void loop() { |