Merge pull request #9821 from Jason2866/patch-4

use ESP32 API sleep
This commit is contained in:
Theo Arends 2020-11-12 14:36:53 +01:00 committed by GitHub
commit 5594598364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 6 deletions

View File

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

View File

@ -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

View File

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