Skip to content

Commit

Permalink
Only switch to STANDBY if nof cells is clear
Browse files Browse the repository at this point in the history
  • Loading branch information
mvgalen committed Jan 13, 2025
1 parent 673c400 commit 74cb21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Software/src/battery/MEB-BATTERY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 74cb21e

Please sign in to comment.