summaryrefslogtreecommitdiff
path: root/sensor/thermostat.ino
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2018-08-03 12:25:37 +0100
committerdakkar <dakkar@thenautilus.net>2018-08-03 12:25:37 +0100
commit9ad65d69c1af586b2d07573aba4bb644f6cb1221 (patch)
tree190e38113a0c7cff8ff5f96fcfc9a8fa6ad897e9 /sensor/thermostat.ino
parentnote the source of patchedBLE (diff)
downloadthermostat-9ad65d69c1af586b2d07573aba4bb644f6cb1221.tar.gz
thermostat-9ad65d69c1af586b2d07573aba4bb644f6cb1221.tar.bz2
thermostat-9ad65d69c1af586b2d07573aba4bb644f6cb1221.zip
uni-init BLE before sleeping
Diffstat (limited to 'sensor/thermostat.ino')
-rw-r--r--sensor/thermostat.ino2
1 files changed, 1 insertions, 1 deletions
diff --git a/sensor/thermostat.ino b/sensor/thermostat.ino
index 4ab3833..23bc610 100644
--- a/sensor/thermostat.ino
+++ b/sensor/thermostat.ino
@@ -138,7 +138,7 @@ void setup() {
void teardown_and_sleep(int next_time) {
enable_sensor(false);
- //BLEDevice::uninit();
+ BLEDevice::uninit();
//esp_wifi_stop();
delay(2000);
esp_sleep_enable_timer_wakeup(next_time * uS_TO_S_FACTOR);