Bug #7699 » anytone.patch
chirp/drivers/anytone.py Thu Oct 24 15:46:01 2019 +0200 → chirp/drivers/anytone.py Thu Mar 12 19:42:47 2020 -0700 | ||
---|---|---|
LOG = logging.getLogger(__name__)
|
||
STEPS = [2.5, 5.0, 10.0, 12.5, 20.0, 25.0, 30.0, 50.0, 100.0]
|
||
_mem_format = """
|
||
#seekto 0x0100;
|
||
struct {
|
||
... | ... | |
response = radio.pipe.read(3)
|
||
if response != "QX\x06":
|
||
LOG.debug("Response was:\n%s" % util.hexprint(response))
|
||
raise errors.RadioError("Unsupported model")
|
||
raise errors.RadioError("Unsupported model or bad connection")
|
||
_echo_write(radio, "\x02")
|
||
response = radio.pipe.read(16)
|
||
LOG.debug(util.hexprint(response))
|
||
... | ... | |
rf.has_bank = False
|
||
rf.has_cross = True
|
||
rf.has_tuning_step = False
|
||
rf.valid_tuning_steps = STEPS
|
||
rf.has_rx_dtcs = True
|
||
rf.valid_skips = ["", "S", "P"]
|
||
rf.valid_modes = ["FM", "NFM", "AM"]
|