Fix ident
This commit is contained in:
parent
7bc15c6dd3
commit
d8d2a55eab
@ -455,7 +455,8 @@ def ident():
|
||||
#We only care about slot 2 - idents go out on slot 2
|
||||
_slot = systems[system].STATUS[2]
|
||||
#If slot is idle for RX and TX
|
||||
if (_slot['RX_TYPE'] == HBPF_SLT_VTERM) and (_slot['TX_TYPE'] == HBPF_SLT_VTERM) and (time() - _slot['TX_TIME'] < CONFIG['SYSTEMS'][system]['GROUP_HANGTIME']):
|
||||
#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)
|
||||
_say = [words['silence']]
|
||||
@ -496,6 +497,8 @@ 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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user