Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and andrei-menzopol committed Oct 9, 2024
1 parent 7382cb2 commit 7d87510
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions examples/platform/nxp/common/matter_button/source/ButtonApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ void chip::NXP::App::ButtonApp::HandleLongPress()
{
// Execute "clean" reset
chip::DeviceLayer::PlatformMgr().ScheduleWork(
[](intptr_t arg) {
chip::DeviceLayer::PlatformMgr().StopEventLoopTask();
chip::DeviceLayer::PlatformMgr().Shutdown();
chip::DeviceLayer::PlatformMgrImpl().Reset();
},
(intptr_t) nullptr);
[](intptr_t arg) {
chip::DeviceLayer::PlatformMgr().StopEventLoopTask();
chip::DeviceLayer::PlatformMgr().Shutdown();
chip::DeviceLayer::PlatformMgrImpl().Reset();
},
(intptr_t) nullptr);
}

void chip::NXP::App::ButtonApp::HandleDoubleClick()
Expand Down
4 changes: 3 additions & 1 deletion src/platform/nxp/mcxw71_k32w1/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ void PlatformManagerImpl::Reset()
#endif
// Restart the system.
NVIC_SystemReset();
while (1) {}
while (1)
{
}
}

void PlatformManagerImpl::ScheduleResetInIdle(void)
Expand Down

0 comments on commit 7d87510

Please sign in to comment.