From 365a951978ff2e8241aad31d8439642ea26ac08f Mon Sep 17 00:00:00 2001 From: Martin Polehla Date: Sun, 4 Feb 2024 17:24:09 +0100 Subject: [PATCH] Update jkbms_can.py https://github.com/Louisvdw/dbus-serialbattery/issues/950 --- etc/dbus-serialbattery/bms/jkbms_can.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/dbus-serialbattery/bms/jkbms_can.py b/etc/dbus-serialbattery/bms/jkbms_can.py index 2021771d..72a7e90b 100644 --- a/etc/dbus-serialbattery/bms/jkbms_can.py +++ b/etc/dbus-serialbattery/bms/jkbms_can.py @@ -66,7 +66,7 @@ def get_settings(self): # After successful connection get_settings will be call to set up the battery. # Set the current limits, populate cell count, etc # Return True if success, False for failure - self.max_battery_current = MAX_BATTERY_CHARGE_CURRENT + self.max_battery_charge_current = MAX_BATTERY_CHARGE_CURRENT self.max_battery_discharge_current = MAX_BATTERY_DISCHARGE_CURRENT self.max_battery_voltage = MAX_CELL_VOLTAGE * self.cell_count self.min_battery_voltage = MIN_CELL_VOLTAGE * self.cell_count