From 0f18553237b4a2bf534ac4b5eab62d0b7f9f2085 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 22 Nov 2021 16:20:26 +0100 Subject: [PATCH] Remove Tasmota Gratuitous ARP code for ESP32 Remove Tasmota Gratuitous ARP code for ESP32 as it is performed by core/idf --- tasmota/support_tasmota.ino | 2 ++ tasmota/support_wifi.ino | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index 76db6006f..de4a0f360 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -994,8 +994,10 @@ void PerformEverySecond(void) } } +#ifdef ESP8266 // Wifi keep alive to send Gratuitous ARP wifiKeepAlive(); +#endif WifiPollNtp(); diff --git a/tasmota/support_wifi.ino b/tasmota/support_wifi.ino index bf80f579e..05072542a 100644 --- a/tasmota/support_wifi.ino +++ b/tasmota/support_wifi.ino @@ -668,6 +668,7 @@ void EspRestart(void) } } +#ifdef ESP8266 // // Gratuitous ARP, backported from https://github.com/esp8266/Arduino/pull/6889 // @@ -715,6 +716,7 @@ void wifiKeepAlive(void) { SetNextTimeInterval(wifi_timer, wifiTimerSec * 1000); } } +#endif // ESP8266 void WifiPollNtp() { static uint8_t ntp_sync_minute = 0;