Update radio.py

This commit is contained in:
SpudGunMan
2025-10-24 10:19:05 -07:00
parent b8886e0662
commit 57ce15de4e

View File

@@ -100,6 +100,9 @@ def get_freq_common_name(freq):
def get_hamlib(msg="f"):
# get data from rigctld server
if "socket" not in globals():
logger.warning("RadioMon: 'socket' module not imported. Hamlib disabled.")
return ERROR_FETCHING_DATA
try:
rigControlSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
rigControlSocket.settimeout(2)