mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 02:27:21 +00:00
Fix test_dtcs and test_cross skipping
This test has been wrong for a long time, basically never properly asserting DTCS values for drivers. The three drivers fixed immediately before this commit should have been caught by this test, but were not because it was always skipping the dtcs field. Related to #11506
This commit is contained in:
parent
f949fb7ed0
commit
f8dbe754f7
@ -174,15 +174,16 @@ class DriverTest(unittest.TestCase):
|
||||
(a.tmode == "Cross" and
|
||||
rx_mode == "Tone"))):
|
||||
continue
|
||||
elif k == "dtcs" and not (
|
||||
(a.tmode == "DTCS" and not self.rf.has_rx_dtcs) or
|
||||
(a.tmode == "Cross" and tx_mode == "DTCS") or
|
||||
(a.tmode == "Cross" and rx_mode == "DTCS" and
|
||||
not self.rf.has_rx_dtcs)):
|
||||
elif k == "dtcs" and (a.tmode != 'DTCS' or
|
||||
(a.tmode == 'Cross' and tx_mode != 'DTCS')):
|
||||
# If we are not in a tmode where a transmit DTCS code is
|
||||
# required, we do not care if the code is persisted.
|
||||
continue
|
||||
elif k == "rx_dtcs" and (not self.rf.has_rx_dtcs or
|
||||
not (a.tmode == "Cross" and
|
||||
rx_mode == "DTCS")):
|
||||
# If we are not in a tmode where a receive DTCS code is
|
||||
# required, we do not care if the code is persisted.
|
||||
continue
|
||||
elif k == "offset" and not a.duplex:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user