From d2aff17b3c621c87ee246f5278ddbe5fd0e35b94 Mon Sep 17 00:00:00 2001 From: Jaakko Haakana Date: Fri, 6 Jun 2025 16:49:11 +0300 Subject: [PATCH] Add missing call to setup --- Software/src/battery/Shunts.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 }