From 684b7dc3a474eba93d5468b2d16d020d03a414fb Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 18 Apr 2020 16:34:29 +0200 Subject: [PATCH] Update ESP32 optional brownout disable --- tasmota/tasmota.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index a0d684517..7ae7d60bb 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -190,14 +190,14 @@ char web_log[WEB_LOG_SIZE] = {'\0'}; // Web log buffer void setup(void) { - global_state.data = 3; // Init global state (wifi_down, mqtt_down) to solve possible network issues - #ifdef ESP32 -#ifdef DISABLE_BROWNOUT - DisableBrownout(); +#ifdef DISABLE_ESP32_BROWNOUT + DisableBrownout(); // Workaround possible weak LDO resulting in brownout detection during Wifi connection #endif #endif + global_state.data = 3; // Init global state (wifi_down, mqtt_down) to solve possible network issues + RtcRebootLoad(); if (!RtcRebootValid()) { RtcReboot.fast_reboot_count = 0;