Update system.py

This commit is contained in:
SpudGunMan
2024-12-13 13:15:11 -08:00
parent fdbab1685f
commit fdd741446c
+2 -2
View File
@@ -904,8 +904,8 @@ def consumeMetadata(packet, rxNode=0):
def get_sysinfo(nodeID=0, deviceID=1):
# Get the system telemetry data for return on the sysinfo command
sysinfo = ''
stats = displayNodeTelemetry(nodeID, deviceID) + " 🤖👀" + str(len(seenNodes))
if "numPacketsRx:0" in stats:
stats = str(displayNodeTelemetry(nodeID, deviceID)) + " 🤖👀" + str(len(seenNodes))
if "numPacketsRx:0" in stats or stats == -1:
return "Gathering Telemetry try again later⏳"
# replace Telemetry with Int in string
stats = stats.replace("Telemetry", "Int")