Skip to content

Commit

Permalink
Removed the temperature level
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Oct 2, 2024
1 parent e068bb5 commit 36f09cd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ class RefrigeratorManager
int16_t mTemperatureSetpoint;
int16_t mMinTemperature;
int16_t mMaxTemperature;
int16_t mStep;
int16_t mSelectedTemperatureLevel;
int16_t mSupportedTemperatureLevels;

chip::app::Clusters::RefrigeratorAlarm::AlarmBitmap mMask;
chip::app::Clusters::RefrigeratorAlarm::AlarmBitmap mState;
Expand Down
13 changes: 0 additions & 13 deletions examples/refrigerator-app/silabs/src/RefrigeratorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,6 @@ void RefrigeratorManager::TempCtrlAttributeChangeHandler(EndpointId endpointId,
}
break;

case TempCtrlAttr::SelectedTemperatureLevel::Id: {
int16_t selectedTemperatureLevel = ConvertToPrintableTemp(static_cast<int16_t>(*value));
mSelectedTemperatureLevel = selectedTemperatureLevel;
TempCtrlAttr::SelectedTemperatureLevel::Set(endpointId, selectedTemperatureLevel);
}
break;

case TempCtrlAttr::Step::Id: {
int16_t step = ConvertToPrintableTemp(static_cast<int16_t>(*value));
TempCtrlAttr::MaxTemperature::Set(endpointId, step);
}
break;

default: {
ChipLogError(AppServer, "Unhandled Temperature controlled attribute %ld", attributeId);
return;
Expand Down

0 comments on commit 36f09cd

Please sign in to comment.