patch to clear tgid at end of call thx Graham (boadbod)

This commit is contained in:
Max 2017-05-04 21:55:47 -04:00
parent b5ec34562b
commit 8c98a8be52
1 changed files with 4 additions and 7 deletions

View File

@ -136,13 +136,10 @@ class curses_terminal(threading.Thread):
self.stdscr.refresh()
elif msg['json_type'] == 'change_freq':
s = 'Frequency %f' % (msg['freq'] / 1000000.0)
if not msg['tgid']:
self.active1.clear()
self.active2.clear()
return False
s += ' Talkgroup ID %s' % (msg['tgid'])
if msg['tdma'] is not None:
s += 'TDMA Slot %s' % msg['tdma']
if msg['tgid'] is not None:
s += ' Talkgroup ID %s' % (msg['tgid'])
if msg['tdma'] is not None:
s += ' TDMA Slot %s' % msg['tdma']
self.active1.clear()
self.active2.clear()
self.active1.addstr(0, 0, s)