From 2eeab7a55ee250f980b0c1656ed38f70baf5b756 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 6 Oct 2024 16:56:56 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/system.py b/modules/system.py index ac0eae7..0b15dd4 100644 --- a/modules/system.py +++ b/modules/system.py @@ -705,8 +705,9 @@ def getNodeTelemetry(nodeID=0, rxNode=0): if numPacketsTx[1] == 1: dataResponse += f" numPacketsTx:{numPacketsTx[0]} numPacketsRx:{numPacketsRx[0]} numPacketsTxErr:{numPacketsTxErr[0]} numPacketsRxErr:{numPacketsRxErr[0]}" elif numPacketsTx[1] == 2: - dataResponse += f" numPacketsTx:{numPacketsTx[0]} numPacketsRx:{numPacketsRx[0]} numPacketsTxErr:{numPacketsTxErr[0]} numPacketsRxErr:{numPacketsRxErr[0]} " - + dataResponse += f" numPacketsTx:{numPacketsTx[0]} numPacketsRx:{numPacketsRx[0]} numPacketsTxErr:{numPacketsTxErr[0]} numPacketsRxErr:{numPacketsRxErr[0]}" + else: + dataResponse += f" numPacketsTx:-1 numPacketsRx:-1 numPacketsTxErr:-1 numPacketsRxErr:-1" # Channel utilization and airUtilTx dataResponse += " ChUtil%:" + str(round(chutil, 2)) + " AirTx%:" + str(round(airUtilTx, 2))