Browse Source
Merge pull request #84 from DanielR92/patch-1
Update __init__.py (short one line)
pull/86/head^2
lumapu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
tools/rpi/hoymiles/__init__.py
|
@ -263,8 +263,7 @@ class InverterPacketFragment: |
|
|
c_datetime = self.time_rx.strftime("%Y-%m-%d %H:%M:%S.%f") |
|
|
c_datetime = self.time_rx.strftime("%Y-%m-%d %H:%M:%S.%f") |
|
|
size = len(self.frame) |
|
|
size = len(self.frame) |
|
|
channel = f' channel {self.ch_rx}' if self.ch_rx else '' |
|
|
channel = f' channel {self.ch_rx}' if self.ch_rx else '' |
|
|
raw = " ".join([f"{b:02x}" for b in self.frame]) |
|
|
return f"{c_datetime} Received {size} bytes{channel}: {hexify_payload(self.frame)}" |
|
|
return f"{c_datetime} Received {size} bytes{channel}: {raw}" |
|
|
|
|
|
|
|
|
|
|
|
class HoymilesNRF: |
|
|
class HoymilesNRF: |
|
|
"""Hoymiles NRF24 Interface""" |
|
|
"""Hoymiles NRF24 Interface""" |
|
|