mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 11:34:54 +01:00
fix wifi function call
This commit is contained in:
parent
b22dacc0f2
commit
fa9d874ce6
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue