From 9ad65d69c1af586b2d07573aba4bb644f6cb1221 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 3 Aug 2018 12:25:37 +0100 Subject: uni-init BLE before sleeping --- sensor/thermostat.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sensor/thermostat.ino') 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); -- cgit v1.2.3