From f0272b339cb4e1036cb8072d29cc1ff1b465476a Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 10 Feb 2020 14:24:53 +0100 Subject: [PATCH] Fix compile error --- tasmota/xdrv_01_webserver.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 5945436bc..132c6a426 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -640,8 +640,14 @@ void WifiManagerBegin(bool reset_only) int channel = WIFI_SOFT_AP_CHANNEL; if ((channel < 1) || (channel > 13)) { channel = 1; } + +#ifdef ARDUINO_ESP8266_RELEASE_2_3_0 + // bool softAP(const char* ssid, const char* passphrase = NULL, int channel = 1, int ssid_hidden = 0); + WiFi.softAP(my_hostname, WIFI_AP_PASSPHRASE, channel, 0); +#else // bool softAP(const char* ssid, const char* passphrase = NULL, int channel = 1, int ssid_hidden = 0, int max_connection = 4); - WiFi.softAP(my_hostname, WIFI_AP_PASSPHRASE, channel, false, 1); + WiFi.softAP(my_hostname, WIFI_AP_PASSPHRASE, channel, 0, 1); +#endif delay(500); // Without delay I've seen the IP address blank /* Setup the DNS server redirecting all the domains to the apIP */