Skip to content

Commit 14bedbe

Browse files
Merge branch 'master' into master
2 parents c860a75 + f356be8 commit 14bedbe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/server/Server.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,7 @@ void Server::GenerateShutDownEvent()
618618

619619
void Server::PostFactoryResetEvent()
620620
{
621-
DeviceLayer::ChipDeviceEvent event;
622-
event.Type = DeviceLayer::DeviceEventType::kFactoryReset;
621+
DeviceLayer::ChipDeviceEvent event{ .Type = DeviceLayer::DeviceEventType::kFactoryReset };
623622

624623
CHIP_ERROR error = DeviceLayer::PlatformMgr().PostEvent(&event);
625624
if (error != CHIP_NO_ERROR)

0 commit comments

Comments
 (0)