Skip to content

Commit

Permalink
Adds fix for LastConnectErrorValue have null after device reset (#26448)
Browse files Browse the repository at this point in the history
* Adds fix for LastConnectErrorValue have null after device reset

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 10, 2023
1 parent 10e8482 commit 1491392
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/platform/silabs/NetworkCommissioningWiFiDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,10 @@ void SlWiFiDriver::UpdateNetworkingStatus()
ByteSpan networkId = ByteSpan((const unsigned char *) mStagingNetwork.ssid, mStagingNetwork.ssidLen);
if (!wfx_is_sta_connected())
{
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kUnknownError, MakeOptional(networkId),
MakeOptional((int32_t) SL_STATUS_FAIL));
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kUnknownError, MakeOptional(networkId), NullOptional);
return;
}
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kSuccess, MakeOptional(networkId),
MakeOptional((int32_t) SL_STATUS_OK));
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kSuccess, MakeOptional(networkId), NullOptional);
}

void SlWiFiDriver::OnConnectWiFiNetwork()
Expand Down

0 comments on commit 1491392

Please sign in to comment.