Skip to content

Commit 0d5a234

Browse files
committed
precommit run -all :/ someday I'll remember
1 parent 72052a4 commit 0d5a234

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ports/espressif/common-hal/wifi/__init__.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)