init & override

This commit is contained in:
Matthew Kennedy 2020-07-29 02:45:39 -07:00
parent dc55784102
commit f11856c07d
1 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ private:
OutputPin* const m_disable; OutputPin* const m_disable;
float m_value = 0; float m_value = 0;
ControlType m_type; ControlType m_type = ControlType::PwmDirectionPins;
public: public:
/** /**
* @param enable SimplePwm driver for enable pin, for PWM speed control. * @param enable SimplePwm driver for enable pin, for PWM speed control.
@ -90,8 +90,8 @@ public:
float get() const override; float get() const override;
bool isOpenDirection() const override; bool isOpenDirection() const override;
void enable(); void enable() override;
void disable(); void disable() override;
void setType(ControlType type) { m_type = type; } void setType(ControlType type) { m_type = type; }
}; };