diff options
| author | BennyE <bennye_hh@posteo.net> | 2021-01-10 17:18:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-10 17:18:43 +0100 |
| commit | 53e4d78a3cf42b4a8766d8d2d8315464b80b9632 (patch) | |
| tree | 1c54ef9f3958f3a4063397905593ab194d801926 | |
| parent | 115f3e08677520806b95dfc92e4462d119854023 (diff) | |
Update ports/esp32s2/common-hal/wifi/Network.c
Avoid to use yet another variable.
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
| -rw-r--r-- | ports/esp32s2/common-hal/wifi/Network.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/esp32s2/common-hal/wifi/Network.c b/ports/esp32s2/common-hal/wifi/Network.c index 83c675a19..b6eb6bb43 100644 --- a/ports/esp32s2/common-hal/wifi/Network.c +++ b/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) { authmode = "UNKNOWN"; break; } - const char* cstr = (const char*) authmode; - return mp_obj_new_str(cstr, strlen(cstr)); + return mp_obj_new_str(authmode, strlen(authmode)); } |
