From 20e027e1a5b1ff075012953699efcd21d4247dde Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Wed, 11 Nov 2020 18:09:16 +0100 Subject: [PATCH] ESP32 with BT needs APP_NORMAL_SLEEP --- tasmota/my_user_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 2e4798142..3f0d450c0 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -262,7 +262,9 @@ #define APP_BLINKTIME 10 // [BlinkTime] Time in 0.1 Sec to blink/toggle power for relay 1 #define APP_BLINKCOUNT 10 // [BlinkCount] Number of blinks (0 = 32000) -#define APP_NORMAL_SLEEP false // [SetOption60] Enable normal sleep instead of dynamic sleep +#ifndef 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 +#endif #define APP_SLEEP 0 // [Sleep] Sleep time to lower energy consumption (0 = Off, 1 - 250 mSec), #define PWM_MAX_SLEEP 10 // Sleep will be lowered to this value when light is on, to avoid flickering, and when buzzer is on for better on/off period accuracy