Skip to content

Commit 64bb055

Browse files
committed
Updating comment to reflect feedback of espressif from IDFGH-4486 -> works correct as per the protocol
1 parent 1a6b1b1 commit 64bb055

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ports/esp32s2/common-hal/wifi/Network.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ mp_obj_t common_hal_wifi_network_get_channel(wifi_network_obj_t *self) {
5151

5252
mp_obj_t common_hal_wifi_network_get_country(wifi_network_obj_t *self) {
5353
const char* cstr = (const char*) self->record.country.cc;
54-
// To address esp_wifi_get_country() returned/set wifi_country_t structure
55-
// doesn't follow the documented behaviour (IDFGH-4486) #6315
56-
// 2 instead of strlen(cstr) which would be 6 and contain full element
54+
// 2 instead of strlen(cstr) as this gives us only the country-code
5755
return mp_obj_new_str(cstr, 2);
5856
}

0 commit comments

Comments
 (0)