mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-30 09:48:27 +02:00
Fix disabled wifi crash on boot (#5370)
This commit is contained in:
@@ -40,6 +40,9 @@ void WiFiComponent::setup() {
|
|||||||
if (this->enable_on_boot_) {
|
if (this->enable_on_boot_) {
|
||||||
this->start();
|
this->start();
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef USE_ESP32
|
||||||
|
esp_netif_init();
|
||||||
|
#endif
|
||||||
this->state_ = WIFI_COMPONENT_STATE_DISABLED;
|
this->state_ = WIFI_COMPONENT_STATE_DISABLED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user