From f11856c07dad8d6707861649cfd0503e1c43725c Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 29 Jul 2020 02:45:39 -0700 Subject: [PATCH] init & override --- firmware/controllers/system/dc_motor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/system/dc_motor.h b/firmware/controllers/system/dc_motor.h index 51e64e9c28..fdf6272d28 100644 --- a/firmware/controllers/system/dc_motor.h +++ b/firmware/controllers/system/dc_motor.h @@ -77,7 +77,7 @@ private: OutputPin* const m_disable; float m_value = 0; - ControlType m_type; + ControlType m_type = ControlType::PwmDirectionPins; public: /** * @param enable SimplePwm driver for enable pin, for PWM speed control. @@ -90,8 +90,8 @@ public: float get() const override; bool isOpenDirection() const override; - void enable(); - void disable(); + void enable() override; + void disable() override; void setType(ControlType type) { m_type = type; } };