Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions xantrex-service.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# Version: 2.1.766.2025.09.19
# Date: 2025-09-19
# Version: 2.1.766.2025.09.19
# Date: 2025-09-19

# Xantrex Freedom Pro RV-C D-Bus Driver
#
Expand Down Expand Up @@ -1174,7 +1174,7 @@ def process_multiFrames(self, dgn: int, src: int, data: bytes) -> bool:
st["need"] -= 1
st["deadline"] = time.monotonic() + 2.0

try
try:
# Finished this BAM?
if st["need"] == 0:
payload = bytes(st["buf"])[: st["len"]] # trim to announced len
Expand Down Expand Up @@ -1209,7 +1209,7 @@ def process_multiFrames(self, dgn: int, src: int, data: bytes) -> bool:

temp = re.search(r'U3:0*([0-9]{1,2}\.[0-9]{2})', assembled_txt)
if temp is not None:
FIRMWARE_VERSION = = temp.group(1)
FIRMWARE_VERSION = temp.group(1)
self._InverterService['/FirmwareVersion'] = FIRMWARE_VERSION
self._ChargerService['/FirmwareVersion'] = FIRMWARE_VERSION

Expand Down Expand Up @@ -1679,4 +1679,5 @@ def signal_handler(signum, frame):


if __name__ == '__main__':
main()

main()