Skip to content

Commit ece4c4e

Browse files
committed
Removed the attribute update for refrigerator and temperature cluster
1 parent 4e86d8d commit ece4c4e

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

examples/refrigerator-app/silabs/include/RefrigeratorManager.h

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class RefrigeratorManager
4343
{
4444
public:
4545
CHIP_ERROR Init();
46-
void RefAndTempCtrlAttributeChangeHandler(EndpointId endpointId, AttributeId attributeId, uint8_t * value, uint16_t size);
4746
void TempCtrlAttributeChangeHandler(EndpointId endpointId, AttributeId attributeId, uint8_t * value, uint16_t size);
4847
void RefAlaramAttributeChangeHandler(EndpointId endpointId, AttributeId attributeId, uint8_t * value, uint16_t size);
4948
uint8_t GetMode();

examples/refrigerator-app/silabs/src/RefrigeratorManager.cpp

-19
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,6 @@ int8_t RefrigeratorManager::ConvertToPrintableTemp(int16_t temperature)
9696
return static_cast<int8_t>(temperature / 100);
9797
}
9898

99-
void RefrigeratorManager::RefAndTempCtrlAttributeChangeHandler(EndpointId endpointId, AttributeId attributeId, uint8_t * value,
100-
uint16_t size)
101-
{
102-
switch (attributeId)
103-
{
104-
case RefAndTempAttr::CurrentMode::Id: {
105-
int16_t currentMode = static_cast<int16_t>(*value);
106-
mCurrentMode = currentMode;
107-
}
108-
break;
109-
110-
default: {
111-
ChipLogError(AppServer, "Unhandled Refrigerator and Temperature attribute %ld", attributeId);
112-
return;
113-
}
114-
break;
115-
}
116-
}
117-
11899
void RefrigeratorManager::TempCtrlAttributeChangeHandler(EndpointId endpointId, AttributeId attributeId, uint8_t * value,
119100
uint16_t size)
120101
{

examples/refrigerator-app/silabs/src/ZclCallbacks.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &
4747
ChipLogProgress(Zcl, "Identify cluster ID: " ChipLogFormatMEI " Type: %u Value: %u, length %u",
4848
ChipLogValueMEI(attributePath.mAttributeId), type, *value, size);
4949
break;
50-
case app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode::Id:
51-
RefrigeratorMgr().RefAndTempCtrlAttributeChangeHandler(attributePath.mEndpointId, attributeId, value, size);
52-
#ifdef DIC_ENABLE
53-
dic::control::AttributeHandler(attributePath.mEndpointId, attributeId);
54-
#endif // DIC_ENABLE
55-
break;
5650
case app::Clusters::RefrigeratorAlarm::Id:
5751
RefrigeratorMgr().RefAlaramAttributeChangeHandler(attributePath.mEndpointId, attributeId, value, size);
5852
#ifdef DIC_ENABLE

0 commit comments

Comments
 (0)