Skip to content

Commit

Permalink
adding lock and unlock for window app
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Apr 27, 2023
1 parent 8cdd0aa commit cea4397
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 cea4397

Please sign in to comment.