From 74cb21ee818d2ab1fda18861dee8192d1aebf909 Mon Sep 17 00:00:00 2001 From: mvgalen Date: Mon, 13 Jan 2025 21:59:47 +0100 Subject: [PATCH] Only switch to STANDBY if nof cells is clear --- Software/src/battery/MEB-BATTERY.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/src/battery/MEB-BATTERY.cpp b/Software/src/battery/MEB-BATTERY.cpp index 328ad8b9..cffecc30 100644 --- a/Software/src/battery/MEB-BATTERY.cpp +++ b/Software/src/battery/MEB-BATTERY.cpp @@ -1513,7 +1513,7 @@ void handle_incoming_can_frame_battery(CAN_frame rx_frame) { break; } datalayer.battery.status.CAN_battery_still_alive = CAN_STILL_ALIVE; - if (can_msg_received == 0xFFFF) { + if (can_msg_received == 0xFFFF && nof_cells_determined) { if (datalayer.battery.status.bms_status == INACTIVE) datalayer.battery.status.bms_status = STANDBY; }