From d23dad15727f409e7cde650d8464ac65622aef9c Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 23 Sep 2020 17:32:53 -0600 Subject: [PATCH] handle error condition when beacon rssi cannot be read and beacon used for calc --- lf_cisco_power.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lf_cisco_power.py b/lf_cisco_power.py index 70f27d21..31ab3598 100755 --- a/lf_cisco_power.py +++ b/lf_cisco_power.py @@ -942,6 +942,10 @@ def main(): e_tot += "ERROR: Could not detect signal level. " sig = -100 + if (beacon_sig == None): + e_tot += "ERROR: Could not detect beacon signal level. " + beacon_sig = -100 + pi = int(pathloss) if(rssi_to_use == "beacon"): print("rssi_to_use == beacon: beacon_sig: %s "%(beacon_sig))