Skip to content

Commit

Permalink
[Infineon] Fix "Failed to write calendar type with error: 0x87"
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinHsiao committed Aug 15, 2022
1 parent 1c613ad commit 16dd272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/lighting-app/cyw30739/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ void InitApp(intptr_t args)
/* Start CHIP datamodel server */
static chip::CommonCaseDeviceServerInitParams initParams;
(void) initParams.InitializeStaticResourcesBeforeServerInit();
gExampleDeviceInfoProvider.SetStorageDelegate(initParams.persistentStorageDelegate);
chip::DeviceLayer::SetDeviceInfoProvider(&gExampleDeviceInfoProvider);
chip::Inet::EndPointStateOpenThread::OpenThreadEndpointInitParam nativeParams;
nativeParams.lockCb = [] { ThreadStackMgr().LockThreadStack(); };
nativeParams.unlockCb = [] { ThreadStackMgr().UnlockThreadStack(); };
Expand All @@ -159,8 +161,6 @@ void InitApp(intptr_t args)
chip::Server::GetInstance().Init(initParams);

SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());
gExampleDeviceInfoProvider.SetStorageDelegate(&chip::Server::GetInstance().GetPersistentStorage());
chip::DeviceLayer::SetDeviceInfoProvider(&gExampleDeviceInfoProvider);

LightMgr().Init();
LightMgr().SetCallbacks(LightManagerCallback, nullptr);
Expand Down
4 changes: 2 additions & 2 deletions examples/lock-app/cyw30739/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ void InitApp(intptr_t args)
/* Start CHIP datamodel server */
static chip::CommonCaseDeviceServerInitParams initParams;
(void) initParams.InitializeStaticResourcesBeforeServerInit();
gExampleDeviceInfoProvider.SetStorageDelegate(initParams.persistentStorageDelegate);
chip::DeviceLayer::SetDeviceInfoProvider(&gExampleDeviceInfoProvider);
chip::Inet::EndPointStateOpenThread::OpenThreadEndpointInitParam nativeParams;
nativeParams.lockCb = [] { ThreadStackMgr().LockThreadStack(); };
nativeParams.unlockCb = [] { ThreadStackMgr().UnlockThreadStack(); };
Expand All @@ -184,8 +186,6 @@ void InitApp(intptr_t args)
chip::Server::GetInstance().Init(initParams);

SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());
gExampleDeviceInfoProvider.SetStorageDelegate(&chip::Server::GetInstance().GetPersistentStorage());
chip::DeviceLayer::SetDeviceInfoProvider(&gExampleDeviceInfoProvider);

// Initial lock state
chip::app::DataModel::Nullable<chip::app::Clusters::DoorLock::DlLockState> state;
Expand Down

0 comments on commit 16dd272

Please sign in to comment.