File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
supervisor/shared/web_workflow Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,9 @@ bool supervisor_start_web_workflow(bool reload) {
266
266
267
267
os_getenv_err_t result = common_hal_os_getenv_str ("CIRCUITPY_WIFI_SSID" , ssid , sizeof (ssid ));
268
268
if (result != GETENV_OK ) {
269
+ #if CIRCUITPY_CYW43
270
+ common_hal_wifi_radio_stop_station (& common_hal_wifi_radio_obj );
271
+ #endif
269
272
return false;
270
273
}
271
274
@@ -274,6 +277,10 @@ bool supervisor_start_web_workflow(bool reload) {
274
277
// if password is unspecified, assume an open network
275
278
password [0 ] = '\0' ;
276
279
} else if (result != GETENV_OK ) {
280
+ #if CIRCUITPY_CYW43
281
+ common_hal_wifi_radio_stop_station (& common_hal_wifi_radio_obj );
282
+ #endif
283
+
277
284
return false;
278
285
}
279
286
You can’t perform that action at this time.
0 commit comments