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 115f3e0 commit 53e4d78Copy full SHA for 53e4d78
ports/esp32s2/common-hal/wifi/Network.c
@@ -86,6 +86,5 @@ mp_obj_t common_hal_wifi_network_get_authmode(wifi_network_obj_t *self) {
86
authmode = "UNKNOWN";
87
break;
88
}
89
- const char* cstr = (const char*) authmode;
90
- return mp_obj_new_str(cstr, strlen(cstr));
+ return mp_obj_new_str(authmode, strlen(authmode));
91
0 commit comments