mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-06 18:01:18 +02:00
Update system.py
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user