Merge pull request #14 from Cisien/cisien/add-rx-airtime

Add support for reading the rx airtime field
This commit is contained in:
fdlamotte 2025-08-02 08:28:08 +02:00 committed by GitHub
commit 6cd7da6c2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -330,6 +330,7 @@ class MessageReader:
res["last_snr"] = int.from_bytes(data[50:52], byteorder='little', signed=True) / 4
res["direct_dups"] = int.from_bytes(data[52:54], byteorder='little')
res["flood_dups"] = int.from_bytes(data[54:56], byteorder='little')
res["rx_airtime"] = int.from_bytes(data[56:60], byteorder='little')
data_hex = data[8:].hex()
logger.debug(f"Status response: {data_hex}")