Skip to content

Commit 1071893

Browse files
chirag-silabspull[bot]
authored andcommitted
adding lock and unlock for window app (#26276)
1 parent c3ca9ca commit 1071893

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/window-app/silabs/SiWx917/src/WindowAppImpl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ void WindowAppImpl::OnTaskCallback(void * parameter)
167167
}
168168
SILABS_LOG("APP: Done WiFi Init");
169169
/* We will init server when we get IP */
170+
chip::DeviceLayer::PlatformMgr().LockChipStack();
170171
sWiFiNetworkCommissioningInstance.Init();
172+
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
171173
/* added for commissioning with wifi */
172174
#endif
173175

examples/window-app/silabs/efr32/src/WindowAppImpl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ void WindowAppImpl::OnTaskCallback(void * parameter)
168168
}
169169
SILABS_LOG("APP: Done WiFi Init");
170170
/* We will init server when we get IP */
171+
chip::DeviceLayer::PlatformMgr().LockChipStack();
171172
sWiFiNetworkCommissioningInstance.Init();
173+
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
172174
/* added for commisioning with wifi */
173175
#endif
174176

0 commit comments

Comments
 (0)