Skip to content

Commit

Permalink
fix UnicodeDecodeError
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Apr 25, 2023
1 parent a32c738 commit 017df8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions etc/dbus-serialbattery/config.default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ DC_CURRENT_LIMIT3_FRACTION = 0.5

; --------- Time-To-Go ---------
; Description: Calculates the time to go shown in the GUI
; Recalculation is done based on TIME_TO_SOC_RECALCULATE_EVERY
TIME_TO_GO_ENABLE = True

; --------- Time-To-Soc ---------
Expand Down
4 changes: 3 additions & 1 deletion etc/dbus-serialbattery/jkbms_brn.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
[["device_info", "sw_rev"], 30, "8s"],
[["device_info", "uptime"], 38, "<L"],
[["device_info", "vendor_id"], 6, "16s"],
[["device_info", "manufacturing_date"], 78, "8s"],
# disabled since some BMS throw a UnicodeDecodeError
# https://github.com/Louisvdw/dbus-serialbattery/discussions/485#discussioncomment-5694781
# [["device_info", "manufacturing_date"], 78, "8s"],
]

TRANSLATE_SETTINGS = [
Expand Down

0 comments on commit 017df8a

Please sign in to comment.