File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ports/espressif/common-hal/wifi Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -201,17 +201,17 @@ void common_hal_wifi_init(bool user_initiated) {
201
201
}
202
202
// set the default lwip_local_hostname
203
203
//
204
- // What happens if someone uses wifi.radio.hostname and then the
204
+ // What happens if someone uses wifi.radio.hostname and then the
205
205
// interface is reset, I don't know if an interface reset is a thing
206
206
// but there is logic here to check for re-entry into the common_hal_wifi_init
207
- // module. I would think we would want to carry the exising hostname across
207
+ // module. I would think we would want to carry the existing hostname across
208
208
// subsequent interface resets.
209
209
char cpy_default_hostname [80 ];
210
210
uint8_t mac [6 ];
211
211
esp_wifi_get_mac (ESP_IF_WIFI_STA , mac );
212
212
sprintf (cpy_default_hostname , "cpy_%s_%x" , CIRCUITPY_BOARD_ID , (unsigned int )mac );
213
213
const char * default_lwip_local_hostname = cpy_default_hostname ;
214
- ESP_ERROR_CHECK (esp_netif_set_hostname (self -> netif ,default_lwip_local_hostname ));
214
+ ESP_ERROR_CHECK (esp_netif_set_hostname (self -> netif , default_lwip_local_hostname ));
215
215
// set station mode to avoid the default SoftAP
216
216
common_hal_wifi_radio_start_station (self );
217
217
// start wifi
You can’t perform that action at this time.
0 commit comments