diff --git a/Core/Src/analyzer.c b/Core/Src/analyzer.c index 54f06ae..fa2f2fe 100644 --- a/Core/Src/analyzer.c +++ b/Core/Src/analyzer.c @@ -420,6 +420,7 @@ void calc_dcl() /* ceiling for current limit */ if (current_limit > MAX_CELL_CURR) { bmsdata->discharge_limit = MAX_CELL_CURR; + return; } /* protection against being init to a high value */ diff --git a/Drivers/Embedded-Base b/Drivers/Embedded-Base index fdfdca7..cba9b75 160000 --- a/Drivers/Embedded-Base +++ b/Drivers/Embedded-Base @@ -1 +1 @@ -Subproject commit fdfdca783209c293807b1e71efc5447d754050eb +Subproject commit cba9b75895eec9cde748f8b053afb7c1f5eda4ec