From 2027514af7eccc3008ac304236242b1b033b0e98 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 21 May 2026 02:51:27 +0300 Subject: [PATCH] Simplify By default the WiFi channel is used --- flix/wifi.ino | 2 -- 1 file changed, 2 deletions(-) diff --git a/flix/wifi.ino b/flix/wifi.ino index 80bbd09..5c87828 100644 --- a/flix/wifi.ino +++ b/flix/wifi.ino @@ -39,12 +39,10 @@ void setupWiFi() { } else if (wifiMode == W_ESPNOW) { WiFi.mode(WIFI_AP); WiFi.setChannel(espnowChannel); - espnow.setChannel(espnowChannel); espnow.addr(MacAddress(storage.getString("ESPNOW_PEER_MAC", "FF:FF:FF:FF:FF:FF").c_str())); String key = storage.getString("ESPNOW_PEER_KEY", ""); espnow.setKey(key.isEmpty() ? nullptr : (const uint8_t *)key.c_str()); espnow.begin(); - espnowBroadcast.setChannel(espnowChannel); espnowBroadcast.begin(); }