Skip to content

Commit

Permalink
Add the code that sets previous value in the block where we have an e…
Browse files Browse the repository at this point in the history
…xpected value
  • Loading branch information
nivi-apple committed Apr 8, 2024
1 parent 91537d1 commit 8d025d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2144,6 +2144,7 @@ - (NSArray *)_getAttributesToReportWithReportedValues:(NSArray<NSDictionary<NSSt
// if expected values exists, purge and update read cache
NSArray * expectedValue = _expectedValueCache[attributePath];
if (expectedValue) {
previousValue = expectedValue[MTRDeviceExpectedValueFieldValueIndex];
_readCache[attributePath] = attributeDataValue;
shouldReportAttribute = NO;
} else if (readCacheValueChanged) {
Expand Down

0 comments on commit 8d025d0

Please sign in to comment.