fix wifi function call

This commit is contained in:
NP v/d Spek 2024-08-24 22:13:45 +02:00
parent b22dacc0f2
commit fa9d874ce6

View file

@ -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();