Skip to content

Commit

Permalink
When decrease, we don't need to check speedMax
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Jan 12, 2024
1 parent 0a14892 commit 5587165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chef/common/chef-fan-control-manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Status ChefFanControlManager::HandleStep(StepDirectionEnum aDirection, bool aWra
{
newSpeedSetting = kLowestSpeed;
}
else if ((speedSetting.Value() > 1) && (speedSetting.Value() <= speedMax))
else if (speedSetting.Value() > 1)
{
newSpeedSetting = static_cast<uint8_t>(speedSetting.Value() - 1);
}
Expand Down

0 comments on commit 5587165

Please sign in to comment.