From fa9d874ce662b677212f5e85cedd696d58ae4abb Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Sat, 24 Aug 2024 22:13:45 +0200 Subject: [PATCH] fix wifi function call --- esphome/components/espnow/espnow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/espnow/espnow.cpp b/esphome/components/espnow/espnow.cpp index 0babee645b..6cde57a591 100644 --- a/esphome/components/espnow/espnow.cpp +++ b/esphome/components/espnow/espnow.cpp @@ -102,7 +102,7 @@ void ESPNowComponent::setup() { ESP_LOGI(TAG, "Setting up ESP-NOW..."); #ifdef USE_WIFI - wifi::global_wifi_component.disable(); + wifi::global_wifi_component->disable(); #else // Set device as a Wi-Fi Station esp_event_loop_create_default();