We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6b1b1 commit 64bb055Copy full SHA for 64bb055
ports/esp32s2/common-hal/wifi/Network.c
@@ -51,8 +51,6 @@ mp_obj_t common_hal_wifi_network_get_channel(wifi_network_obj_t *self) {
51
52
mp_obj_t common_hal_wifi_network_get_country(wifi_network_obj_t *self) {
53
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
+ // 2 instead of strlen(cstr) as this gives us only the country-code
57
return mp_obj_new_str(cstr, 2);
58
}
0 commit comments