We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c860a75 + f356be8 commit 14bedbeCopy full SHA for 14bedbe
src/app/server/Server.cpp
@@ -618,8 +618,7 @@ void Server::GenerateShutDownEvent()
618
619
void Server::PostFactoryResetEvent()
620
{
621
- DeviceLayer::ChipDeviceEvent event;
622
- event.Type = DeviceLayer::DeviceEventType::kFactoryReset;
+ DeviceLayer::ChipDeviceEvent event{ .Type = DeviceLayer::DeviceEventType::kFactoryReset };
623
624
CHIP_ERROR error = DeviceLayer::PlatformMgr().PostEvent(&event);
625
if (error != CHIP_NO_ERROR)
0 commit comments