Skip to content

Commit

Permalink
Merge branch 'master' into telink_tl721x
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 authored Jan 7, 2025
2 parents 71e3004 + f8d457a commit a0dcf23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/ESP32/NetworkCommissioningDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* limitations under the License.
*/

#include <app/InteractionModelEngine.h> // nogncheck
#include <lib/support/CodeUtils.h>
#include <lib/support/SafeInt.h>
#include <platform/CHIPDeviceLayer.h>
Expand Down Expand Up @@ -458,6 +459,9 @@ void ESPWiFiDriver::OnScanWiFiNetworkDone()

void ESPWiFiDriver::OnNetworkStatusChange()
{
// This function reports the status to the data model provider, so skip it if the provider is not ready.
VerifyOrReturn(app::InteractionModelEngine::GetInstance() &&
app::InteractionModelEngine::GetInstance()->GetDataModelProvider());
Network configuredNetwork;
bool staEnabled = false, staConnected = false;
VerifyOrReturn(ESP32Utils::IsStationEnabled(staEnabled) == CHIP_NO_ERROR);
Expand Down

0 comments on commit a0dcf23

Please sign in to comment.