mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Update ESP32 optional brownout disable
This commit is contained in:
parent
9d838c001c
commit
684b7dc3a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user