From 3786b4ea9fb6b5584fd4ff2e534eb67f7df1dbbf Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 12 Nov 2020 14:28:39 +0100 Subject: [PATCH 1/3] remove esp32 sleep build flag --- platformio_tasmota32.ini | 2 -- 1 file changed, 2 deletions(-) diff --git a/platformio_tasmota32.ini b/platformio_tasmota32.ini index 154dbb916..5b3f9d77e 100644 --- a/platformio_tasmota32.ini +++ b/platformio_tasmota32.ini @@ -90,5 +90,3 @@ platform_packages = tool-esptoolpy@1.20800.0 framework-arduinoespressif32 @ https://github.com/tasmota/arduino-esp32/releases/download/1.0.4.2/esp32-1.0.4.2.zip build_unflags = ${esp32_defaults.build_unflags} build_flags = ${esp32_defaults.build_flags} - -DAPP_NORMAL_SLEEP=true - From b0e2ceb17b1e3860a87d1aacff19d9301cef4003 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 12 Nov 2020 14:30:14 +0100 Subject: [PATCH 2/3] remove ESP32 sleep build flag --- platformio_override_sample.ini | 2 -- 1 file changed, 2 deletions(-) diff --git a/platformio_override_sample.ini b/platformio_override_sample.ini index 4ea4d9130..60b3628b0 100644 --- a/platformio_override_sample.ini +++ b/platformio_override_sample.ini @@ -128,8 +128,6 @@ platform_packages = tool-esptoolpy @ 1.20800.0 framework-arduinoespressif32 @ https://github.com/tasmota/arduino-esp32/releases/download/1.0.4.2/esp32-1.0.4.2.zip build_unflags = ${esp32_defaults.build_unflags} build_flags = ${esp32_defaults.build_flags} - ; ESP32 needs wifi modem sleep for working BT !!! - -DAPP_NORMAL_SLEEP=true -DESP32_STAGE=true [library] From 0c89adb4353cbd27e8bc9058bad5b388e0793ba1 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 12 Nov 2020 14:32:34 +0100 Subject: [PATCH 3/3] Enable ESP32 API sleep --- tasmota/tasmota_globals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_globals.h b/tasmota/tasmota_globals.h index 6b9495cb0..109a1e505 100644 --- a/tasmota/tasmota_globals.h +++ b/tasmota/tasmota_globals.h @@ -357,8 +357,8 @@ const char kWebColors[] PROGMEM = #define FALLBACK_MODULE WEMOS // [Module2] Select default module on fast reboot where USER_MODULE is user template #endif -#undef APP_NORMAL_SLEEP // ESP32 with BT needs API sleep! Platformio "-DAPP_NORMAL_SLEEP=true" -#define APP_NORMAL_SLEEP false // [SetOption60] Enable normal sleep instead of dynamic sleep +#undef APP_NORMAL_SLEEP // ESP32 with BT needs API sleep! +#define APP_NORMAL_SLEEP true // [SetOption60] Enable normal sleep instead of dynamic sleep #ifndef ARDUINO_ESP32_RELEASE #define ARDUINO_CORE_RELEASE "STAGE"