From fe6d7fa66346d49e4b91ae7c36f8392e8c503f5c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 7 Oct 2024 18:10:34 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 206aad7..9e6d5c4 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -852,7 +852,7 @@ def onReceive(packet, interface): localStats = telemetry_packet['localStats'] print(f"DEBUG localStats found: {localStats}") # Check if 'numPacketsTx' and 'numPacketsRx' exist and are not zero - if localStats.get('numPacketsTx') is not None and localStats.get('numPacketsRx') is not None and localStats['numPacketsRx'] != 0: + if localStats.get('numPacketsTx') is not None and localStats.get('numPacketsRx') is not None and localStats['numPacketsTx'] != -1: # Assign the values and include rxNode numPacketsTx = (localStats['numPacketsTx'], rxNode) numPacketsRx = (localStats['numPacketsRx'], rxNode) @@ -865,7 +865,7 @@ def onReceive(packet, interface): except KeyError: numPacketsRxErr = (-1, rxNode) # airUtilTx = (round(localStats['airUtilTx'], 2), rxNode) - print(f"DEBUG packet {telemetry_packet}") + #print(f"DEBUG packet {telemetry_packet}") print(f"DEBUG injest numPacketsTx, numPacketsRx, numPacketsTxErr, numPacketsRxErr: {numPacketsTx}, {numPacketsRx}, {numPacketsTxErr}, {numPacketsRxErr}")