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;