Skip to content

Commit

Permalink
senhaix8800: Fix setting tx inhibit on simplex
Browse files Browse the repository at this point in the history
This radio was disabling tx when duplex='' (i.e. simplex) instead of
when duplex='off'

Fixes: 11511
  • Loading branch information
kk7ds committed Aug 31, 2024
1 parent 63e8a46 commit 4933cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chirp/drivers/ga510.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,12 @@ def set_memory(self, mem):

_mem.rxfreq = mem.freq // 10
if mem.duplex == '':
if isinstance(self, Senhaix8800Radio):
_mem.allow_tx = False
_mem.txfreq = mem.freq // 10
elif mem.duplex == 'split':
_mem.txfreq = mem.offset // 10
elif mem.duplex == 'off':
if isinstance(self, Senhaix8800Radio):
_mem.allow_tx = False
for i in range(0, 4):
_mem.txfreq[i].set_raw(b'\xFF')
elif mem.duplex == '-':
Expand Down

0 comments on commit 4933cc7

Please sign in to comment.