Update system.py

This commit is contained in:
SpudGunMan
2024-08-01 01:35:16 -07:00
parent 7afd5a675f
commit bbd4b2901c
+2 -2
View File
@@ -358,14 +358,14 @@ async def handleSignalWatcher():
# monitor rigctld for signal strength and frequency
while True:
msg = await signalWatcher()
if msg != ERROR_FETCHING_DATA and msg != None:
if msg != ERROR_FETCHING_DATA and msg is not None:
print(f"{log_timestamp()} System: Detected Alert from Hamlib {msg}")
# check we are not spammig the channel limit messages to once per minute
if time.time() - lastHamLibAlert > 60:
lastHamLibAlert = time.time()
# if sigWatchBrodcastCh list contains multiple channels, broadcast to all
if type(sigWatchBrodcastCh) == list:
if type(sigWatchBrodcastCh) is list:
for ch in sigWatchBrodcastCh:
if antiSpam and ch != publicChannel:
send_message(msg, int(ch), 0, 1)