diff options
author | Max <ikj1234i@yahoo.com> | 2017-05-04 21:55:47 -0400 |
---|---|---|
committer | Max <ikj1234i@yahoo.com> | 2017-05-04 21:55:47 -0400 |
commit | 8c98a8be5215db0a6e4c7e23059ef76aff8d55ba (patch) | |
tree | 4012508da65ade7a5141728d6d3c3bdd02a162ef /op25 | |
parent | b5ec34562b6a7d8b5920295b2923e8a4ed3e4df6 (diff) |
patch to clear tgid at end of call thx Graham (boadbod)
Diffstat (limited to 'op25')
-rw-r--r-- | op25/gr-op25_repeater/apps/terminal.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/op25/gr-op25_repeater/apps/terminal.py b/op25/gr-op25_repeater/apps/terminal.py index f26482a..a32dbe1 100644 --- a/op25/gr-op25_repeater/apps/terminal.py +++ b/op25/gr-op25_repeater/apps/terminal.py @@ -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) |