Skip to content

Commit 53e4d78

Browse files
BennyEtannewt
andauthored
Update ports/esp32s2/common-hal/wifi/Network.c
Avoid to use yet another variable. Co-authored-by: Scott Shawcroft <[email protected]>
1 parent 115f3e0 commit 53e4d78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,5 @@ mp_obj_t common_hal_wifi_network_get_authmode(wifi_network_obj_t *self) {
8686
authmode = "UNKNOWN";
8787
break;
8888
}
89-
const char* cstr = (const char*) authmode;
90-
return mp_obj_new_str(cstr, strlen(cstr));
89+
return mp_obj_new_str(authmode, strlen(authmode));
9190
}

0 commit comments

Comments
 (0)