Skip to content

Commit

Permalink
Make so second battery can only join if voltages match
Browse files Browse the repository at this point in the history
  • Loading branch information
dalathegreat committed Jan 24, 2025
1 parent 93d70d1 commit 8a295fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Software/src/battery/KIA-HYUNDAI-64-BATTERY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ void transmit_can_battery() {
transmit_can_frame(&KIA64_57F, can_config.battery);
transmit_can_frame(&KIA64_2A1, can_config.battery);
#ifdef DOUBLE_BATTERY
if (battery2_startedUp) {
if (battery2_startedUp && datalayer.system.status.battery2_allows_contactor_closing) {
transmit_can_frame(&KIA64_553, can_config.battery_double);
transmit_can_frame(&KIA64_57F, can_config.battery_double);
transmit_can_frame(&KIA64_2A1, can_config.battery_double);
Expand Down Expand Up @@ -997,7 +997,7 @@ void transmit_can_battery() {
transmit_can_frame(&KIA_HYUNDAI_524, can_config.battery);

#ifdef DOUBLE_BATTERY
if (battery2_startedUp) {
if (battery2_startedUp && datalayer.system.status.battery2_allows_contactor_closing) {
transmit_can_frame(&KIA_HYUNDAI_200, can_config.battery_double);

transmit_can_frame(&KIA_HYUNDAI_523, can_config.battery_double);
Expand Down

0 comments on commit 8a295fc

Please sign in to comment.