Skip to content

Commit

Permalink
[Ameba] [wifi] fix ssid and password length after getting from nvs (p…
Browse files Browse the repository at this point in the history
…roject-chip#27883)

* [wifi] fix ssid and password length after getting from nvs

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and erwinpan1 committed Jul 21, 2023
1 parent dfacf8f commit 41ab65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/Ameba/AmebaUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ CHIP_ERROR AmebaUtils::GetWiFiConfig(rtw_wifi_config_t * config)
&credentialsLen);
SuccessOrExit(err);

config->ssid_len = ssidLen;
config->password_len = credentialsLen;
config->ssid_len = strlen((const char *) config->ssid);
config->password_len = strlen((const char *) config->password);

exit:
return err;
Expand Down

0 comments on commit 41ab65a

Please sign in to comment.