mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 12:00:37 +08:00
Merge pull request #324 from fape/sleep_mode_fix
fix sleep_mode for esp8266
This commit is contained in:
commit
33be90f75e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user