File tree 2 files changed +4
-4
lines changed
src/app/clusters/time-synchronization-server
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -435,9 +435,9 @@ void TimeSynchronizationServer::AttemptToGetTime()
435
435
}
436
436
}
437
437
438
- void TimeSynchronizationServer::Init ()
438
+ void TimeSynchronizationServer::Init (PersistentStorageDelegate & persistentStorage )
439
439
{
440
- mTimeSyncDataProvider .Init (Server::GetInstance (). GetPersistentStorage () );
440
+ mTimeSyncDataProvider .Init (persistentStorage );
441
441
442
442
Structs::TrustedTimeSourceStruct::Type tts;
443
443
if (mTimeSyncDataProvider .LoadTrustedTimeSource (tts) == CHIP_NO_ERROR)
@@ -1324,6 +1324,6 @@ bool emberAfTimeSynchronizationClusterSetDefaultNTPCallback(
1324
1324
1325
1325
void MatterTimeSynchronizationPluginServerInitCallback ()
1326
1326
{
1327
- TimeSynchronizationServer::Instance ().Init ();
1327
+ TimeSynchronizationServer::Instance ().Init (Server::GetInstance (). GetPersistentStorage () );
1328
1328
registerAttributeAccessOverride (&gAttrAccess );
1329
1329
}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class TimeSynchronizationServer : public FabricTable::Delegate
66
66
{
67
67
public:
68
68
TimeSynchronizationServer ();
69
- void Init ();
69
+ void Init (PersistentStorageDelegate & persistentStorage );
70
70
void Shutdown ();
71
71
72
72
static TimeSynchronizationServer & Instance (void );
You can’t perform that action at this time.
0 commit comments