mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-10-31 06:11:59 +01:00
Update radio.py
This commit is contained in:
1 parent
b8886e0662
commit
57ce15de4e
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user