From d8f750ebb974c5a2908170be98fd7ed410b8bb04 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 9 Apr 2020 14:00:02 +0200 Subject: [PATCH] Add legacy support --- 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 a0a3bacaf..8144ea351 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -815,8 +815,10 @@ void PerformEverySecond(void) } } +#ifndef ARDUINO_ESP8266_RELEASE_2_3_0 // Wifi keep alive to send Gratuitous ARP wifiKeepAlive(); +#endif // ARDUINO_ESP8266_RELEASE_2_3_0 } /*-------------------------------------------------------------------------------------------*\ diff --git a/tasmota/support_wifi.ino b/tasmota/support_wifi.ino index 97d291fbc..8f022057d 100644 --- a/tasmota/support_wifi.ino +++ b/tasmota/support_wifi.ino @@ -712,6 +712,7 @@ void EspRestart(void) ESP.reset(); } +#ifndef ARDUINO_ESP8266_RELEASE_2_3_0 // // Gratuitous ARP, backported from https://github.com/esp8266/Arduino/pull/6889 // @@ -759,3 +760,4 @@ void wifiKeepAlive(void) { SetNextTimeInterval(wifiTimer, wifiTimerSec * 1000); } } +#endif // ARDUINO_ESP8266_RELEASE_2_3_0 \ No newline at end of file