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 @@ -438,9 +438,9 @@ void TimeSynchronizationServer::AttemptToGetTime()
438
438
}
439
439
}
440
440
441
- void TimeSynchronizationServer::Init ()
441
+ void TimeSynchronizationServer::Init (PersistentStorageDelegate & persistentStorage )
442
442
{
443
- mTimeSyncDataProvider .Init (Server::GetInstance (). GetPersistentStorage () );
443
+ mTimeSyncDataProvider .Init (persistentStorage );
444
444
445
445
Structs::TrustedTimeSourceStruct::Type tts;
446
446
if (mTimeSyncDataProvider .LoadTrustedTimeSource (tts) == CHIP_NO_ERROR)
@@ -1328,6 +1328,6 @@ bool emberAfTimeSynchronizationClusterSetDefaultNTPCallback(
1328
1328
1329
1329
void MatterTimeSynchronizationPluginServerInitCallback ()
1330
1330
{
1331
- TimeSynchronizationServer::Instance ().Init ();
1331
+ TimeSynchronizationServer::Instance ().Init (Server::GetInstance (). GetPersistentStorage () );
1332
1332
registerAttributeAccessOverride (&gAttrAccess );
1333
1333
}
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