Skip to content

Commit

Permalink
Fixes #26 - JKBMS BLE 2nd temp sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Apr 28, 2024
1 parent 2624bd1 commit eceec5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
* Added: Use current measurement from other dbus path by @mr-manuel
* Changed: Fixed problem with linear limitation disabled https://github.com/Louisvdw/dbus-serialbattery/issues/1037 by @mr-manuel
* Changed: Fixed problem with P-Controller https://github.com/Louisvdw/dbus-serialbattery/issues/1041 by @mr-manuel
* Changed: JKBMS BLE - Fixed problem with second temperature sensor, which was introduced with `v1.1.20240128dev` https://github.com/mr-manuel/venus-os_dbus-serialbattery/issues/26 by @mr-manuel
* Changed: Optimized SOC reset to 100% and 0% when `SOC_CALCULATION` is enabled by @mr-manuel


Expand Down
2 changes: 1 addition & 1 deletion etc/dbus-serialbattery/bms/jkbms_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def refresh_data(self):
self.to_temp(1, temp1 if temp1 < 32767 else (65535 - temp1) * -1)

temp2 = st["cell_info"]["temperature_sensor_2"]
self.to_temp(1, temp2 if temp2 < 32767 else (65535 - temp2) * -1)
self.to_temp(2, temp2 if temp2 < 32767 else (65535 - temp2) * -1)

self.current = round(st["cell_info"]["current"], 1)
self.voltage = round(st["cell_info"]["total_voltage"], 2)
Expand Down
2 changes: 1 addition & 1 deletion etc/dbus-serialbattery/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _get_list_from_config(


# Constants
DRIVER_VERSION = "1.3.20240427dev"
DRIVER_VERSION = "1.3.20240428dev"
zero_char = chr(48)
degree_sign = "\N{DEGREE SIGN}"

Expand Down

0 comments on commit eceec5f

Please sign in to comment.