diff --git a/Software/src/battery/Shunts.cpp b/Software/src/battery/Shunts.cpp index a04120a8..7aadcd76 100644 --- a/Software/src/battery/Shunts.cpp +++ b/Software/src/battery/Shunts.cpp @@ -6,6 +6,9 @@ CanShunt* shunt = nullptr; void setup_can_shunt() { #if defined(CAN_SHUNT_SELECTED) && defined(SELECTED_SHUNT_CLASS) shunt = new SELECTED_SHUNT_CLASS(); + if (shunt) { + shunt->setup(); + } #endif }