mirror of
https://github.com/luc-github/ESP3D.git
synced 2025-10-31 11:56:48 -07:00
fix sleep_mode for esp8266
This commit is contained in:
@@ -457,7 +457,7 @@ bool WIFI_CONFIG::Setup (bool force_ap)
|
||||
WiFi.begin (sbuf, pwd);
|
||||
delay (100);
|
||||
#ifdef ARDUINO_ARCH_ESP8266
|
||||
WiFi.setSleepMode ( (WiFiSleepType_t) bflag);
|
||||
WiFi.setSleepMode ( (WiFiSleepType_t) sleep_mode);
|
||||
#else
|
||||
//for backward compatibility
|
||||
if ((wifi_ps_type_t) sleep_mode == WIFI_PS_MAX_MODEM)sleep_mode=WIFI_PS_MIN_MODEM;
|
||||
|
||||
Reference in New Issue
Block a user