File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
libraries/ESP8266WiFi/src Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,6 @@ int ESP8266WiFiClass::begin() {
230
230
wifi_station_connect ();
231
231
ETS_UART_INTR_ENABLE ();
232
232
233
- // TODO is static ip not stored in SDK?
234
233
if (!_useStaticIp) {
235
234
wifi_station_dhcpc_start ();
236
235
}
@@ -600,10 +599,11 @@ int ESP8266WiFiClass::softAPdisconnect(bool wifioff) {
600
599
*conf.ssid = 0 ;
601
600
*conf.password = 0 ;
602
601
ETS_UART_INTR_DISABLE ();
603
- if (_persistent)
602
+ if (_persistent) {
604
603
wifi_softap_set_config (&conf);
605
- else
604
+ } else {
606
605
wifi_softap_set_config_current (&conf);
606
+ }
607
607
ETS_UART_INTR_ENABLE ();
608
608
609
609
if (wifioff) {
@@ -1266,7 +1266,7 @@ void ESP8266WiFiClass::printDiag(Print& p) {
1266
1266
p.print (" Auto connect: " );
1267
1267
p.println (wifi_station_get_auto_connect ());
1268
1268
1269
- static struct station_config conf;
1269
+ struct station_config conf;
1270
1270
wifi_station_get_config (&conf);
1271
1271
1272
1272
const char * ssid = reinterpret_cast <const char *>(conf.ssid );
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ class ESP8266WiFiClass {
179
179
WiFiPhyMode_t getPhyMode ();
180
180
181
181
void persistent (bool persistent);
182
+
182
183
bool mode (WiFiMode_t);
183
184
WiFiMode_t getMode ();
184
185
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ bool wifi_set_opmode_current(uint8 opmode);
164
164
uint8 wifi_get_broadcast_if (void );
165
165
bool wifi_set_broadcast_if (uint8 interface );
166
166
167
- struct bss_info {
167
+ typedef struct bss_info {
168
168
STAILQ_ENTRY (bss_info ) next ;
169
169
170
170
uint8 bssid [6 ];
@@ -177,7 +177,7 @@ struct bss_info {
177
177
sint16 freq_offset ;
178
178
sint16 freqcal_val ;
179
179
uint8 * esp_mesh_ie ;
180
- };
180
+ } bss_info_t ;
181
181
182
182
typedef struct _scaninfo {
183
183
STAILQ_HEAD (, bss_info ) * pbss ;
You can’t perform that action at this time.
0 commit comments