File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
supervisor/shared/web_workflow Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ static socketpool_socket_obj_t active;
125
125
static _request active_request ;
126
126
127
127
static char _api_password [64 ];
128
+ static char web_instance_name [50 ];
128
129
129
130
// Store the encoded IP so we don't duplicate work.
130
131
static uint32_t _encoded_ip = 0 ;
@@ -269,7 +270,6 @@ void supervisor_start_web_workflow(void) {
269
270
270
271
char ssid [33 ];
271
272
char password [64 ];
272
- char web_instance_name [50 ];
273
273
274
274
os_getenv_err_t result = common_hal_os_getenv_str ("CIRCUITPY_WIFI_SSID" , ssid , sizeof (ssid ));
275
275
if (result != GETENV_OK ) {
@@ -335,8 +335,7 @@ void supervisor_start_web_workflow(void) {
335
335
mdns_server_construct (& mdns , true);
336
336
mdns .base .type = & mdns_server_type ;
337
337
if (!common_hal_mdns_server_deinited (& mdns )) {
338
- char * instance_name = strndup (web_instance_name , strlen (web_instance_name ));
339
- common_hal_mdns_server_set_instance_name (& mdns , instance_name );
338
+ common_hal_mdns_server_set_instance_name (& mdns , web_instance_name );
340
339
}
341
340
}
342
341
if (!common_hal_mdns_server_deinited (& mdns )) {
You can’t perform that action at this time.
0 commit comments