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] 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 - 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"