From 70f25744c3fc451193c949b1ad590138279c10c9 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 19 Oct 2020 22:45:28 +0100 Subject: [PATCH] tidy up ident --- bridge_master.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 6597bd0..5aa5613 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -458,7 +458,7 @@ def ident(): #print("RX:"+str(_slot['RX_TYPE'])+" TX:"+str(_slot['TX_TYPE'])+" TIME:"+str(time() - _slot['TX_TIME'])) if (_slot['RX_TYPE'] == HBPF_SLT_VTERM) and (_slot['TX_TYPE'] == HBPF_SLT_VTERM) and (time() - _slot['TX_TIME'] > CONFIG['SYSTEMS'][system]['GROUP_HANGTIME']): #_stream_id = hex_str_4(1234567) - logger.info('(%s) Sending voice ident',system) + logger.info('(%s) Repeater idle. Sending voice ident',system) _say = [words['silence']] _systemcs = re.sub(r'\W+', '', system) _systemcs.upper() @@ -497,8 +497,6 @@ def ident(): #Twisted is not thread safe. We need to call this in the reactor main thread reactor.callFromThread(systems[system].send_system,pkt) #systems[system].send_system(pkt) - else: - logger.debug("(%s) repeater busy, not sending ident",system) def mysql_config_check(): logger.debug('(MYSQL) Periodic config check')