From 740da790d6698f54f166ff81c04b1eb7e5b40adb Mon Sep 17 00:00:00 2001 From: Fesseha Date: Fri, 28 Apr 2023 17:05:16 +0200 Subject: [PATCH] ignore attribute storage values for sizes with F quality --- .../time-synchronization-server.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp b/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp index 5220697841b9f1..017fbd0ccf9bb6 100644 --- a/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp +++ b/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp @@ -323,7 +323,6 @@ CHIP_ERROR TimeSynchronizationAttrAccess::Read(const ConcreteReadAttributePath & case UTCTime::Id: { System::Clock::Microseconds64 utcTime; VerifyOrReturnError(System::SystemClock().GetClock_RealTime(utcTime) == CHIP_NO_ERROR, aEncoder.EncodeNull()); - return aEncoder.Encode(utcTime.count()); } case TrustedTimeSource::Id: { @@ -340,12 +339,10 @@ CHIP_ERROR TimeSynchronizationAttrAccess::Read(const ConcreteReadAttributePath & } case TimeZoneListMaxSize::Id: { // can't find a way to initialize default value for F quality uint8_t max = CHIP_CONFIG_TIME_ZONE_LIST_MAX_SIZE; - TimeZoneListMaxSize::Set(aPath.mEndpointId, CHIP_CONFIG_TIME_ZONE_LIST_MAX_SIZE); return aEncoder.Encode(max); } case DSTOffsetListMaxSize::Id: { uint8_t max = CHIP_CONFIG_DST_OFFSET_LIST_MAX_SIZE; - DSTOffsetListMaxSize::Set(aPath.mEndpointId, CHIP_CONFIG_DST_OFFSET_LIST_MAX_SIZE); return aEncoder.Encode(max); } case LocalTime::Id: {