Skip to content

Commit

Permalink
Ensured status was always initialised before returning, added missing…
Browse files Browse the repository at this point in the history
… break in switch case
  • Loading branch information
mhazley committed Apr 28, 2023
1 parent 18d2634 commit 71ea59b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/clusters/fan-control-server/fan-control-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ MatterFanControlClusterServerPreAttributeChangedCallback(const ConcreteAttribute
}
res = Status::Success;
}
else
{
res = Status::Success;
}
break;
}
case SpeedSetting::Id: {
Expand Down Expand Up @@ -384,6 +388,7 @@ void MatterFanControlClusterServerAttributeChangedCallback(const app::ConcreteAt
ChipLogError(Zcl, "Failed to set PercentSetting with error: 0x%02x", status));
}
}
break;
}
default:
break;
Expand Down

0 comments on commit 71ea59b

Please sign in to comment.