Skip to content

Commit

Permalink
removing hard coded array size
Browse files Browse the repository at this point in the history
  • Loading branch information
eahove committed Jan 18, 2024
1 parent efd8c08 commit a45e29f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ namespace OvenCavityOperationalState {
class OvenCavityOperationalStateDelegate : public OperationalState::Delegate
{
private:
const Clusters::OperationalState::GenericOperationalState mOperationalStateList[8] = {
const Clusters::OperationalState::GenericOperationalState mOperationalStateList[] = {
OperationalState::GenericOperationalState(to_underlying(OperationalState::OperationalStateEnum::kStopped)),
OperationalState::GenericOperationalState(to_underlying(OperationalState::OperationalStateEnum::kRunning)),
OperationalState::GenericOperationalState(to_underlying(OperationalState::OperationalStateEnum::kPaused)),
OperationalState::GenericOperationalState(to_underlying(OperationalState::OperationalStateEnum::kError)),
OperationalState::GenericOperationalState(to_underlying(OperationalState::OperationalStateEnum::kError))
};

public:
Expand Down

0 comments on commit a45e29f

Please sign in to comment.