Skip to content

Commit

Permalink
Improve display of held tg's when using web terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbod committed Aug 14, 2023
1 parent 3694036 commit 831f50d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions op25/gr-op25_repeater/apps/tk_p25.py
Original file line number Diff line number Diff line change
Expand Up @@ -1977,13 +1977,14 @@ def hold_talkgroup(self, tgid, curr_time):
self.expire_talkgroup(reason="clear hold", auto_hold = False)

def get_status(self):
_tgid = self.hold_tgid if self.hold_tgid is not None else self.current_tgid
cc_tag = "Control Channel" if self.system.has_cc(self.msgq_id) else None
d = {}
d['freq'] = self.tuned_frequency
d['tdma'] = self.current_slot
d['tgid'] = self.hold_tgid if self.hold_tgid is not None else self.current_tgid
d['tgid'] = _tgid
d['system'] = self.config['trunking_sysname']
d['tag'] = self.talkgroups[self.current_tgid]['tag'] if self.current_tgid is not None else cc_tag
d['tag'] = self.talkgroups[_tgid]['tag'] if _tgid is not None else cc_tag
d['srcaddr'] = self.talkgroups[self.current_tgid]['srcaddr'] if self.current_tgid is not None else 0
d['srctag'] = self.system.get_rid_tag(self.talkgroups[self.current_tgid]['srcaddr']) if self.current_tgid is not None else ""
d['encrypted'] = self.talkgroups[self.current_tgid]['encrypted'] if self.current_tgid is not None else 0
Expand Down

0 comments on commit 831f50d

Please sign in to comment.