Skip to content

Commit

Permalink
Update Software/src/inverter/BYD-MODBUS.cpp
Browse files Browse the repository at this point in the history
Change max value

Co-authored-by: Cabooman <[email protected]>
  • Loading branch information
dalathegreat and Cabooman authored Jan 8, 2024
1 parent 618dbd3 commit 4fd6b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Software/src/inverter/BYD-MODBUS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void handle_update_data_modbusp301_byd() {
static uint16_t battery_data[24];
if (battery_current == 0) {
bms_char_dis_status = STANDBY;
} else if (battery_current > 32768) { //Negative value = Discharging
} else if (battery_current > 32767) { //Negative value = Discharging
bms_char_dis_status = DISCHARGING;
} else { //Positive value = Charging
bms_char_dis_status = CHARGING;
Expand Down

0 comments on commit 4fd6b46

Please sign in to comment.