mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-03 11:11:38 +02:00
Update __init__.py (short one line)
Use the function 'hexify_payload()' in other lines
This commit is contained in:
parent
b1f09d482f
commit
121ce7cbe7
1 changed files with 1 additions and 2 deletions
|
@ -263,8 +263,7 @@ class InverterPacketFragment:
|
|||
c_datetime = self.time_rx.strftime("%Y-%m-%d %H:%M:%S.%f")
|
||||
size = len(self.frame)
|
||||
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}: {raw}"
|
||||
return f"{c_datetime} Received {size} bytes{channel}: {hexify_payload(self.frame)}"
|
||||
|
||||
class HoymilesNRF:
|
||||
"""Hoymiles NRF24 Interface"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue