Add legacy support

This commit is contained in:
Theo Arends 2020-04-09 14:00:02 +02:00
parent 6f51fd4763
commit d8f750ebb9
2 changed files with 4 additions and 0 deletions

View File

@ -815,8 +815,10 @@ void PerformEverySecond(void)
} }
} }
#ifndef ARDUINO_ESP8266_RELEASE_2_3_0
// Wifi keep alive to send Gratuitous ARP // Wifi keep alive to send Gratuitous ARP
wifiKeepAlive(); wifiKeepAlive();
#endif // ARDUINO_ESP8266_RELEASE_2_3_0
} }
/*-------------------------------------------------------------------------------------------*\ /*-------------------------------------------------------------------------------------------*\

View File

@ -712,6 +712,7 @@ void EspRestart(void)
ESP.reset(); ESP.reset();
} }
#ifndef ARDUINO_ESP8266_RELEASE_2_3_0
// //
// Gratuitous ARP, backported from https://github.com/esp8266/Arduino/pull/6889 // Gratuitous ARP, backported from https://github.com/esp8266/Arduino/pull/6889
// //
@ -759,3 +760,4 @@ void wifiKeepAlive(void) {
SetNextTimeInterval(wifiTimer, wifiTimerSec * 1000); SetNextTimeInterval(wifiTimer, wifiTimerSec * 1000);
} }
} }
#endif // ARDUINO_ESP8266_RELEASE_2_3_0