@@ -27,7 +27,6 @@ using namespace chip::app::DataModel;
27
27
using namespace chip ::app::Clusters;
28
28
using namespace chip ::app::Clusters::MeterIdentification;
29
29
using namespace chip ::app::Clusters::MeterIdentification::Attributes;
30
- using namespace chip ::app::Clusters::MeterIdentification::Structs;
31
30
32
31
using chip::app::Clusters::MeterIdentification::MeterTypeEnum;
33
32
using chip::app::Clusters::MeterIdentification::PowerThresholdSourceEnum;
@@ -63,7 +62,7 @@ CHIP_ERROR MeterIdentificationDelegate::SetCustomerName(CharSpan & newValue)
63
62
CharSpan oldValue = mCustomerName ;
64
63
65
64
mCustomerName = newValue;
66
- if (oldValue != newValue)
65
+ if (!oldValue. data_equal ( newValue) )
67
66
{
68
67
// We won't log raw values since these could change frequently
69
68
MatterReportingAttributeChangeCallback (mEndpointId , MeterIdentification::Id, CustomerName::Id);
@@ -77,7 +76,7 @@ CHIP_ERROR MeterIdentificationDelegate::SetUtilityName(CharSpan & newValue)
77
76
CharSpan oldValue = mUtilityName ;
78
77
79
78
mUtilityName = newValue;
80
- if (oldValue != newValue)
79
+ if (!oldValue. data_equal ( newValue) )
81
80
{
82
81
// We won't log raw values since these could change frequently
83
82
MatterReportingAttributeChangeCallback (mEndpointId , MeterIdentification::Id, UtilityName::Id);
@@ -91,7 +90,7 @@ CHIP_ERROR MeterIdentificationDelegate::SetPointOfDelivery(CharSpan & newValue)
91
90
CharSpan oldValue = mPointOfDelivery ;
92
91
93
92
mPointOfDelivery = newValue;
94
- if (oldValue != newValue)
93
+ if (!oldValue. data_equal ( newValue) )
95
94
{
96
95
// We won't log raw values since these could change frequently
97
96
MatterReportingAttributeChangeCallback (mEndpointId , MeterIdentification::Id, PointOfDelivery::Id);
0 commit comments