From 99a0f2add16c459f739be034fd2b96cfe91da489 Mon Sep 17 00:00:00 2001 From: Christian Baars Date: Sun, 25 Jun 2023 14:31:04 +0200 Subject: [PATCH] MI32 legacy: Allow submitting WiFi credentials via BLE using Berry (#18962) --- tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino b/tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino index 4e188e0b9..7a8964c4d 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_62_esp32_mi.ino @@ -697,7 +697,9 @@ void MI32PreInit(void) { void MI32Init(void) { if (MI32.mode.init) { return; } - if (TasmotaGlobal.global_state.wifi_down && TasmotaGlobal.global_state.eth_down) { return; } + if (TasmotaGlobal.global_state.wifi_down && TasmotaGlobal.global_state.eth_down) { + if (!(WIFI_MANAGER == Wifi.config_type || WIFI_MANAGER_RESET_ONLY == Wifi.config_type)) return; + } if (!TasmotaGlobal.global_state.wifi_down) { TasmotaGlobal.wifi_stay_asleep = true; @@ -2669,4 +2671,4 @@ bool Xsns62(uint32_t function) #endif // USE_MI_ESP32 #endif // CONFIG_IDF_TARGET_ESP32 or CONFIG_IDF_TARGET_ESP32C3 #endif // ESP32 -#endif // USE_BLE_ESP32 \ No newline at end of file +#endif // USE_BLE_ESP32