diff --git a/include/daisychainbms.h b/include/daisychainbms.h index d4d48dee..3ba1e837 100644 --- a/include/daisychainbms.h +++ b/include/daisychainbms.h @@ -19,15 +19,18 @@ #ifndef DAISYCHAINBMS_H #define DAISYCHAINBMS_H + +#include "bms.h" +#include "canhardware.h" #include class DaisychainBMS: public BMS { public: - virtual void SetCanInterface(CanHardware* c); - void DecodeCAN(int id, uint8_t * data); - float MaxChargeCurrent(); - void Task100Ms(); + void SetCanInterface(CanHardware* c) override; + void DecodeCAN(int id, uint8_t * data) override; + float MaxChargeCurrent() override; + void Task100Ms() override; private: bool BMSDataValid(); bool ChargeAllowed(); diff --git a/src/daisychainbms.cpp b/src/daisychainbms.cpp index 5f9fecfb..eb6c66ce 100644 --- a/src/daisychainbms.cpp +++ b/src/daisychainbms.cpp @@ -17,8 +17,8 @@ * along with this program. If not, see . */ +#include "daisychainbms.h" #include -#include "stm32_vcu.h" /* * This module receives messages from catphish's DaisychainBMS and updates