Merge pull request #48 from agessaman/add-recv-errors

add support for recv_errors in STATUS_PACKETS response
This commit is contained in:
fdlamotte 2026-01-30 10:48:11 -04:00 committed by GitHub
commit a2d8b3e059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 4 deletions

View file

@ -53,6 +53,11 @@ async def main():
else:
print("📦 Packet Statistics:")
print(json.dumps(result.payload, indent=2))
recv_errors = result.payload.get("recv_errors")
if recv_errors is not None:
print(f" Receive/CRC errors (RadioLib): {recv_errors}")
else:
print(" Receive/CRC errors (RadioLib): not reported (legacy 26-byte frame)")
print()
except Exception as e: