mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-15 02:05:58 +08:00
Fix issues with 2.1.0
break compatibility with 2.0.0
This commit is contained in:
parent
e4af1950eb
commit
9885d2cab9
@ -50,7 +50,7 @@ extern "C" {
|
||||
#include "user_interface.h"
|
||||
}
|
||||
//version and sources location
|
||||
#define FW_VERSION "0.5.1"
|
||||
#define FW_VERSION "0.6.0"
|
||||
#define REPOSITORY "https://github.com/luc-github/ESP8266"
|
||||
|
||||
|
||||
|
@ -129,7 +129,7 @@ void setup()
|
||||
//start TCP/IP interface
|
||||
data_server = new WiFiServer (wifi_config.idata_port);
|
||||
data_server->begin();
|
||||
data_server->setNoDelay(true);
|
||||
//data_server->setNoDelay(true);
|
||||
#endif
|
||||
|
||||
#ifdef MDNS_FEATURE
|
||||
|
@ -158,7 +158,7 @@ bool WIFI_CONFIG::Setup()
|
||||
if (!CONFIG::read_byte(EP_SLEEP_MODE, &bflag )) {
|
||||
return false;
|
||||
}
|
||||
wifi_set_sleep_type ((sleep_type)bflag);
|
||||
wifi_set_sleep_type ((sleep_type_t)bflag);
|
||||
sleep_mode=bflag;
|
||||
//AP or client ?
|
||||
if (!CONFIG::read_byte(EP_WIFI_MODE, &bflag ) || !CONFIG::read_string(EP_SSID, sbuf , MAX_SSID_LENGTH) ||!CONFIG::read_string(EP_PASSWORD, pwd , MAX_PASSWORD_LENGTH)) {
|
||||
@ -178,7 +178,7 @@ bool WIFI_CONFIG::Setup()
|
||||
if (!CONFIG::read_byte(EP_PHY_MODE, &bflag )) {
|
||||
return false;
|
||||
}
|
||||
wifi_set_phy_mode((phy_mode)bflag);
|
||||
wifi_set_phy_mode((phy_mode_t)bflag);
|
||||
//get current config
|
||||
struct softap_config apconfig;
|
||||
wifi_softap_get_config(&apconfig);
|
||||
@ -214,7 +214,7 @@ bool WIFI_CONFIG::Setup()
|
||||
if (!CONFIG::read_byte(EP_PHY_MODE, &bflag )) {
|
||||
return false;
|
||||
}
|
||||
wifi_set_phy_mode((phy_mode)bflag);
|
||||
wifi_set_phy_mode((phy_mode_t)bflag);
|
||||
delay(500);
|
||||
byte i=0;
|
||||
//try to connect
|
||||
|
Loading…
x
Reference in New Issue
Block a user