Skip to content

Commit

Permalink
Update examples/chef/common/chef-fan-control-manager.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
soares-sergio and andy31415 authored Oct 30, 2024
1 parent e15ae5a commit dd44884
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/chef/common/chef-fan-control-manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ void ChefFanControlManager::HandleFanControlAttributeChange(AttributeId attribut
case FanControl::Attributes::SpeedSetting::Id: {
ChipLogProgress(NotSpecified, "ChefFanControlManager::HandleFanControlAttributeChange SpeedSetting");

// DataModel::Nullable<uint8_t> speedSetting = static_cast<DataModel::Nullable<uint8_t>>(*value);
DataModel::Nullable<uint8_t> speedSetting = NumericAttributeTraits<DataModel::Nullable<uint8_t>>::StorageToWorking(*value);
SetSpeedCurrent(speedSetting.IsNull() ? 0 : speedSetting.Value());
// Determine if the speed change should also change the fan mode
Expand Down

0 comments on commit dd44884

Please sign in to comment.