diff --git a/Software/src/inverter/BYD-MODBUS.cpp b/Software/src/inverter/BYD-MODBUS.cpp index 4aa5a86e..dff1a934 100644 --- a/Software/src/inverter/BYD-MODBUS.cpp +++ b/Software/src/inverter/BYD-MODBUS.cpp @@ -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;