Skip to content

Commit

Permalink
adding lock and unlock for window app (#26276)
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs authored and pull[bot] committed Oct 27, 2023
1 parent c3ca9ca commit 1071893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/window-app/silabs/SiWx917/src/WindowAppImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ void WindowAppImpl::OnTaskCallback(void * parameter)
}
SILABS_LOG("APP: Done WiFi Init");
/* We will init server when we get IP */
chip::DeviceLayer::PlatformMgr().LockChipStack();
sWiFiNetworkCommissioningInstance.Init();
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
/* added for commissioning with wifi */
#endif

Expand Down
2 changes: 2 additions & 0 deletions examples/window-app/silabs/efr32/src/WindowAppImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ void WindowAppImpl::OnTaskCallback(void * parameter)
}
SILABS_LOG("APP: Done WiFi Init");
/* We will init server when we get IP */
chip::DeviceLayer::PlatformMgr().LockChipStack();
sWiFiNetworkCommissioningInstance.Init();
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
/* added for commisioning with wifi */
#endif

Expand Down

0 comments on commit 1071893

Please sign in to comment.