There was an error while loading. Please reload this page.
1 parent 069b5fa commit c3c8018Copy full SHA for c3c8018
libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp
@@ -303,7 +303,7 @@ bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenI
303
304
*/
305
306
-#if (NONOSDK >= (0x30000-1))
+#if (NONOSDK >= (0x30000 - 1))
307
308
#ifdef DEBUG_ESP_WIFI
309
if (listenInterval && type == WIFI_NONE_SLEEP)
@@ -334,9 +334,9 @@ bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenI
334
}
335
336
337
-#else // (NONOSDK >= (0x30000-1))
+#else // (NONOSDK >= (0x30000 - 1))
338
(void)listenInterval;
339
-#endif // (NONOSDK >= (0x30000-1))
+#endif // (NONOSDK >= (0x30000 - 1))
340
341
bool ret = wifi_set_sleep_type((sleep_type_t) type);
342
if (!ret) {
@@ -571,7 +571,7 @@ bool ESP8266WiFiGenericClass::forceSleepWake() {
571
* @return interval
572
573
uint8_t ESP8266WiFiGenericClass::getListenInterval () {
574
575
return wifi_get_listen_interval();
576
#else
577
return 0;
@@ -583,7 +583,7 @@ uint8_t ESP8266WiFiGenericClass::getListenInterval () {
583
* @return true if max level
584
585
bool ESP8266WiFiGenericClass::isSleepLevelMax () {
586
587
return wifi_get_sleep_level() == MAX_SLEEP_T;
588
589
return false;
libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp
@@ -61,7 +61,7 @@ static bool sta_config_equal(const station_config& lhs, const station_config& rh
61
62
static bool sta_config_equal(const station_config& lhs, const station_config& rhs) {
63
64
65
static_assert(sizeof(station_config) == 116, "struct station_config has changed, please update comparison function");
66
67
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
94
95
96
97
98
if(lhs.open_and_wep_mode_disable != rhs.open_and_wep_mode_disable) {
99
100
@@ -166,7 +166,7 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
166
167
168
conf.threshold.rssi = -127;
169
170
conf.open_and_wep_mode_disable = !(_useInsecureWEP || *conf.password == 0);
171
#endif
172
#if (NONOSDK >= (0x30200))
tests/host/common/user_interface.cpp
@@ -85,11 +85,11 @@ extern "C"
85
config->bssid[i] = i;
86
config->threshold.rssi = 1;
87
config->threshold.authmode = AUTH_WPA_PSK;
88
89
config->open_and_wep_mode_disable = true;
90
91
92
- config->channel = 1;
+ config->channel = 1;
93
config->all_channel_scan = true;
return true;
@@ -215,7 +215,7 @@ extern "C"
215
return STATION_MODE;
216
217
218
219
220
sleep_level_t wifi_get_sleep_level(void)
221
{
@@ -271,7 +271,7 @@ extern "C"
271
272
273
274
275
276
bool wifi_set_sleep_level(sleep_level_t level)
277
tools/boards.txt.py
@@ -1670,6 +1670,18 @@ def sdk ():
1670
('.menu.sdk.nonosdk221.build.sdk', 'NONOSDK221'),
1671
('.menu.sdk.nonosdk3v0', 'nonos-sdk pre-3 (180626 known issues)'),
1672
('.menu.sdk.nonosdk3v0.build.sdk', 'NONOSDK3V0'),
1673
+ ('.menu.sdk.nonosdk300', 'nonos-sdk 3.0.0'),
1674
+ ('.menu.sdk.nonosdk300.build.sdk', 'NONOSDK300'),
1675
+ ('.menu.sdk.nonosdk301', 'nonos-sdk 3.0.1'),
1676
+ ('.menu.sdk.nonosdk301.build.sdk', 'NONOSDK301'),
1677
+ ('.menu.sdk.nonosdk302', 'nonos-sdk 3.0.2'),
1678
+ ('.menu.sdk.nonosdk302.build.sdk', 'NONOSDK302'),
1679
+ ('.menu.sdk.nonosdk303', 'nonos-sdk 3.0.3'),
1680
+ ('.menu.sdk.nonosdk303.build.sdk', 'NONOSDK303'),
1681
+ ('.menu.sdk.nonosdk304', 'nonos-sdk 3.0.4'),
1682
+ ('.menu.sdk.nonosdk304.build.sdk', 'NONOSDK304'),
1683
+ ('.menu.sdk.nonosdk305', 'nonos-sdk 3.0.5'),
1684
+ ('.menu.sdk.nonosdk305.build.sdk', 'NONOSDK305'),
1685
])
1686
1687
tools/sdk/include/user_interface.h
@@ -26,7 +26,7 @@
26
#define __USER_INTERFACE_H__
27
28
#if defined(NONOSDK3V0)
29
-#define NONOSDK (0x30000-1)
+#define NONOSDK (0x30000 - 1)
30
#elif defined(NONOSDK300)
31
#define NONOSDK (0x30000)
32
#elif defined(NONOSDK301)
@@ -276,7 +276,7 @@ struct station_config {
// with both ssid[] and bssid[] matched. Please check about this.
uint8 bssid[6];
278
wifi_fast_scan_threshold_t threshold;
279
280
bool open_and_wep_mode_disable; // Can connect to open/wep router by default.
281
282
@@ -464,7 +464,7 @@ typedef enum {
464
MODEM_SLEEP_T
465
} sleep_type_t;
466
467
468
469
typedef enum {
470
MIN_SLEEP_T,
0 commit comments