Noise floor output formatting

This commit is contained in:
Mark Qvist 2025-01-13 16:37:18 +01:00
parent fc619460f0
commit 746b403890

View File

@ -321,7 +321,10 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
print(" Rate : {ss}".format(ss=speed_str(ifstat["bitrate"]))) print(" Rate : {ss}".format(ss=speed_str(ifstat["bitrate"])))
if "noise_floor" in ifstat: if "noise_floor" in ifstat:
print(" Noise Fl. : {nfl} dBm".format(nfl=str(ifstat["noise_floor"]))) if ifstat["noise_floor"] != None:
print(" Noise Fl. : {nfl} dBm".format(nfl=str(ifstat["noise_floor"])))
else:
print(" Noise Fl. : Unknown")
if "battery_percent" in ifstat and ifstat["battery_percent"] != None: if "battery_percent" in ifstat and ifstat["battery_percent"] != None:
try: try: