Skip to content

Commit

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

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

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Dec 15, 2023
1 parent d78d915 commit e59b06b
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 e59b06b

Please sign in to comment.