Updating comment to reflect feedback of espressif from IDFGH-4486 -> works correct as per the protocol
This commit is contained in:
parent
1a6b1b1953
commit
64bb055700
|
@ -51,8 +51,6 @@ mp_obj_t common_hal_wifi_network_get_channel(wifi_network_obj_t *self) {
|
|||
|
||||
mp_obj_t common_hal_wifi_network_get_country(wifi_network_obj_t *self) {
|
||||
const char* cstr = (const char*) self->record.country.cc;
|
||||
// To address esp_wifi_get_country() returned/set wifi_country_t structure
|
||||
// doesn't follow the documented behaviour (IDFGH-4486) #6315
|
||||
// 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
|
||||
return mp_obj_new_str(cstr, 2);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue