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) {
201201 }
202202 // set the default lwip_local_hostname
203203 //
204- // What happens if someone uses wifi.radio.hostname and then the
204+ // What happens if someone uses wifi.radio.hostname and then the
205205 // interface is reset, I don't know if an interface reset is a thing
206206 // 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
208208 // subsequent interface resets.
209209 char cpy_default_hostname [80 ];
210210 uint8_t mac [6 ];
211211 esp_wifi_get_mac (ESP_IF_WIFI_STA , mac );
212212 sprintf (cpy_default_hostname , "cpy_%s_%x" , CIRCUITPY_BOARD_ID , (unsigned int )mac );
213213 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 ));
215215 // set station mode to avoid the default SoftAP
216216 common_hal_wifi_radio_start_station (self );
217217 // start wifi
You can’t perform that action at this time.
0 commit comments