Skip to content

Commit

Permalink
ignore attribute storage values for sizes with F quality
Browse files Browse the repository at this point in the history
  • Loading branch information
fessehaeve committed May 2, 2023
1 parent 5a2291b commit 740da79
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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: {
Expand Down

0 comments on commit 740da79

Please sign in to comment.