Skip to content

Commit

Permalink
Adds fix for LastConnectErrorValue have null after device reset
Browse files Browse the repository at this point in the history
  • Loading branch information
LeelakumarPS committed May 9, 2023
1 parent 7e69af7 commit 3a92602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/silabs/NetworkCommissioningWiFiDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ void SlWiFiDriver::UpdateNetworkingStatus()
if (!wfx_is_sta_connected())
{
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kUnknownError, MakeOptional(networkId),
MakeOptional((int32_t) SL_STATUS_FAIL));
NullOptional);
return;
}
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kSuccess, MakeOptional(networkId),
MakeOptional((int32_t) SL_STATUS_OK));
NullOptional);
}

void SlWiFiDriver::OnConnectWiFiNetwork()
Expand Down

0 comments on commit 3a92602

Please sign in to comment.