Skip to content

Commit 59bd293

Browse files
committed
Removing these errors
1 parent 0840ca6 commit 59bd293

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

+5-3
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ - (void)_deviceInternalStateChanged:(MTRDevice *)device;
177177
UnsolicitedMessageFromPublisherHandler unsolicitedMessageFromPublisherHandler, ReportBeginHandler reportBeginHandler,
178178
ReportEndHandler reportEndHandler)
179179
: MTRBaseSubscriptionCallback(attributeReportCallback, eventReportCallback, errorCallback, resubscriptionCallback,
180-
subscriptionEstablishedHandler, onDoneHandler, unsolicitedMessageFromPublisherHandler, reportBeginHandler,
181-
reportEndHandler)
180+
subscriptionEstablishedHandler, onDoneHandler, unsolicitedMessageFromPublisherHandler, reportBeginHandler,
181+
reportEndHandler)
182182
{
183183
}
184184

@@ -3667,7 +3667,9 @@ - (NSArray *)_getAttributesToReportWithReportedValues:(NSArray<NSDictionary<NSSt
36673667
}
36683668
}
36693669

3670-
MTR_LOG("%@ report from reported values %@", self, attributePathsToReport);
3670+
if (attributePathsToReport.count > 0) {
3671+
MTR_LOG("%@ report from reported values %@", self, attributePathsToReport);
3672+
}
36713673

36723674
return attributesToReport;
36733675
}

src/darwin/Framework/CHIP/MTRDeviceStorageBehaviorConfiguration.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ - (void)checkValuesAndResetToDefaultIfNecessary
7575

7676
// Sanity check all the values, and if any is out of range, reset to default values
7777
if ((_reportToPersistenceDelayTime <= 0) || (_reportToPersistenceDelayTimeMax <= 0) || (_reportToPersistenceDelayTimeMax < _reportToPersistenceDelayTime) || (_recentReportTimesMaxCount < 2) || (_timeBetweenReportsTooShortThreshold <= 0) || (_timeBetweenReportsTooShortMinThreshold <= 0) || (_timeBetweenReportsTooShortMinThreshold > _timeBetweenReportsTooShortThreshold) || (_reportToPersistenceDelayMaxMultiplier <= 1) || (_deviceReportingExcessivelyIntervalThreshold <= 0)) {
78-
MTR_LOG_ERROR("%@ storage behavior: MTRDeviceStorageBehaviorConfiguration values out of bounds - resetting to default", self);
78+
MTR_LOG("%@ storage behavior: MTRDeviceStorageBehaviorConfiguration values out of bounds - resetting to default", self);
7979

8080
_reportToPersistenceDelayTime = kReportToPersistenceDelayTimeDefault;
8181
_reportToPersistenceDelayTimeMax = kReportToPersistenceDelayTimeMaxDefault;

0 commit comments

Comments
 (0)