Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Jun 24, 2024
1 parent 87a5662 commit 07b10ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions etc/dbus-serialbattery/config.default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -448,14 +448,6 @@ LIPRO_START_ADDRESS = 2
LIPRO_END_ADDRESS = 4
LIPRO_CELL_COUNT = 15

; DEPRECATED: Use MODBUS_ADDRESSES instead ++++++++++++++++++++++++++++++++
; -- HeltecModbus (Heltec SmartBMS/YYBMS) settings
; Set the Modbus addresses from the adapters
; Separate each address to check by a comma like: 1, 2, 3, ...
; factory default address will be 1
; HELTEC_MODBUS_ADDR = 1
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

; -- Seplos V3 settings
; Use min/max cell voltage, CVL, CCL and DCL from the BMS
SEPLOS_USE_BMS_VALUES = False
Expand Down
2 changes: 1 addition & 1 deletion etc/dbus-serialbattery/dbushelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __new__(cls):
return dbus.bus.BusConnection.__new__(cls, dbus.bus.BusConnection.TYPE_SESSION)


def get_dbus():
def get_dbus() -> dbus.bus.BusConnection:
return SessionBus() if "DBUS_SESSION_BUS_ADDRESS" in os.environ else SystemBus()


Expand Down

0 comments on commit 07b10ff

Please sign in to comment.