Skip to content

Commit

Permalink
Update src/platform/ESP32/NetworkCommissioningDriver.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Wang Qixiang <[email protected]>
  • Loading branch information
DejinChen and wqx6 authored Aug 27, 2024
1 parent 0ee6f82 commit dee76ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/ESP32/NetworkCommissioningDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ CHIP_ERROR GetConfiguredNetwork(Network & network)
CHIP_ERROR ESPWiFiDriver::Init(NetworkStatusChangeCallback * networkStatusChangeCallback)
{
wifi_config_t stationConfig;
if (esp_wifi_get_config(WIFI_IF_STA, &stationConfig) == ERR_OK && stationConfig.sta.ssid[0] != 0)
if (esp_wifi_get_config(WIFI_IF_STA, &stationConfig) == ESP_OK && stationConfig.sta.ssid[0] != 0)
{
uint8_t ssidLen = static_cast<uint8_t>(
strnlen(reinterpret_cast<const char *>(stationConfig.sta.ssid), DeviceLayer::Internal::kMaxWiFiSSIDLength));
Expand Down

0 comments on commit dee76ec

Please sign in to comment.