mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Fix compile error
This commit is contained in:
parent
3de74e8850
commit
f0272b339c
@ -640,8 +640,14 @@ void WifiManagerBegin(bool reset_only)
|
|||||||
|
|
||||||
int channel = WIFI_SOFT_AP_CHANNEL;
|
int channel = WIFI_SOFT_AP_CHANNEL;
|
||||||
if ((channel < 1) || (channel > 13)) { channel = 1; }
|
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);
|
// 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
|
delay(500); // Without delay I've seen the IP address blank
|
||||||
/* Setup the DNS server redirecting all the domains to the apIP */
|
/* Setup the DNS server redirecting all the domains to the apIP */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user