mirror of
https://github.com/esphome/esphome.git
synced 2025-02-08 14:10:54 +00:00
fix wifi function call
This commit is contained in:
parent
b22dacc0f2
commit
fa9d874ce6
@ -102,7 +102,7 @@ void ESPNowComponent::setup() {
|
|||||||
ESP_LOGI(TAG, "Setting up ESP-NOW...");
|
ESP_LOGI(TAG, "Setting up ESP-NOW...");
|
||||||
|
|
||||||
#ifdef USE_WIFI
|
#ifdef USE_WIFI
|
||||||
wifi::global_wifi_component.disable();
|
wifi::global_wifi_component->disable();
|
||||||
#else // Set device as a Wi-Fi Station
|
#else // Set device as a Wi-Fi Station
|
||||||
esp_event_loop_create_default();
|
esp_event_loop_create_default();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user