1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-23 08:45:22 +03:00

NONOS SDK clean-up (#8770)

Remove nonos-sdk-v2.2.0-28-g89920dc aka 3v0, since we have a real v3
Remove 3.0.0...3.0.4 to reduce overhead in maintaining a bunch or binary patches
Update our docs and menu opts to mention 'experimental' status

Old versions still remains in git history, so anyone wanting to play around with 3.0.x could still make use of that work
This commit is contained in:
Max Prokhorov
2023-01-03 01:40:53 +03:00
committed by GitHub
parent 3f1d608a19
commit 204d2c93a7
94 changed files with 51 additions and 2596 deletions

View File

@ -303,7 +303,7 @@ bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenI
*/
#if (NONOSDK >= (0x30000 - 1))
#if (NONOSDK >= (0x30000))
#ifdef DEBUG_ESP_WIFI
if (listenInterval && type == WIFI_NONE_SLEEP)
@ -334,9 +334,9 @@ bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenI
}
}
}
#else // (NONOSDK >= (0x30000 - 1))
#else // (NONOSDK >= (0x30000))
(void)listenInterval;
#endif // (NONOSDK >= (0x30000 - 1))
#endif // (NONOSDK >= (0x30000))
bool ret = wifi_set_sleep_type((sleep_type_t) type);
if (!ret) {
@ -571,7 +571,7 @@ bool ESP8266WiFiGenericClass::forceSleepWake() {
* @return interval
*/
uint8_t ESP8266WiFiGenericClass::getListenInterval () {
#if (NONOSDK >= (0x30000 - 1))
#if (NONOSDK >= (0x30000))
return wifi_get_listen_interval();
#else
return 0;
@ -583,7 +583,7 @@ uint8_t ESP8266WiFiGenericClass::getListenInterval () {
* @return true if max level
*/
bool ESP8266WiFiGenericClass::isSleepLevelMax () {
#if (NONOSDK >= (0x30000 - 1))
#if (NONOSDK >= (0x30000))
return wifi_get_sleep_level() == MAX_SLEEP_T;
#else
return false;

View File

@ -61,7 +61,7 @@ static bool sta_config_equal(const station_config& lhs, const station_config& rh
*/
static bool sta_config_equal(const station_config& lhs, const station_config& rhs) {
#if (NONOSDK >= (0x30000 - 1))
#if (NONOSDK >= (0x30000))
static_assert(sizeof(station_config) == 116, "struct station_config has changed, please update comparison function");
#else
static_assert(sizeof(station_config) == 112, "struct station_config has changed, please update comparison function");
@ -94,7 +94,7 @@ static bool sta_config_equal(const station_config& lhs, const station_config& rh
return false;
}
#if (NONOSDK >= (0x30000 - 1))
#if (NONOSDK >= (0x30000))
if(lhs.open_and_wep_mode_disable != rhs.open_and_wep_mode_disable) {
return false;
}
@ -166,7 +166,7 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
}
conf.threshold.rssi = -127;
#if (NONOSDK >= (0x30000 - 1))
#if (NONOSDK >= (0x30000))
conf.open_and_wep_mode_disable = !(_useInsecureWEP || *conf.password == 0);
#endif
#if (NONOSDK >= (0x30200))