From de107908dec53c2636a07c61b5b8f8505e97df2e Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 20 Nov 2024 09:13:43 -0500 Subject: [PATCH] Remove double init --- examples/light-switch-app/qpg/src/AppTask.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/light-switch-app/qpg/src/AppTask.cpp b/examples/light-switch-app/qpg/src/AppTask.cpp index df2ed627c54035..2b1a49a51dd8a3 100644 --- a/examples/light-switch-app/qpg/src/AppTask.cpp +++ b/examples/light-switch-app/qpg/src/AppTask.cpp @@ -204,8 +204,6 @@ CHIP_ERROR AppTask::StartAppTask() void AppTask::InitServer(intptr_t arg) { static chip::CommonCaseDeviceServerInitParams initParams; - (void) initParams.InitializeStaticResourcesBeforeServerInit(); - initParams.dataModelProvider = CodegenDataModelProviderInstance(); gExampleDeviceInfoProvider.SetStorageDelegate(initParams.persistentStorageDelegate); chip::DeviceLayer::SetDeviceInfoProvider(&gExampleDeviceInfoProvider);