senhaix8800: Fix setting tx inhibit on simplex

This radio was disabling tx when duplex='' (i.e. simplex) instead of
when duplex='off'

Fixes: 11511
This commit is contained in:
Dan Smith 2024-08-31 06:55:27 -07:00 committed by Dan Smith
parent 63e8a4661e
commit 5897f1b236

View File

@ -579,12 +579,12 @@ class RadioddityGA510Radio(chirp_common.CloneModeRadio):
_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 == '-':