Bug #4585 » kguv8d-ctcss-4585.patch
chirp/drivers/kguv8d.py Wed May 16 12:49:15 2018 -0400 → chirp/drivers/kguv8d.py Sun Jun 03 22:27:37 2018 -0400 | ||
---|---|---|
return val
|
||
rx_mode = tx_mode = None
|
||
rxtone = txtone = 0xFFFF
|
||
rxtone = txtone = 0x0000
|
||
if mem.tmode == "Tone":
|
||
tx_mode = "Tone"
|
||
rx_mode = None
|
||
txtone = int(mem.rtone * 10)
|
||
txtone = int(mem.rtone * 10) + 0x8000
|
||
elif mem.tmode == "TSQL":
|
||
rx_mode = tx_mode = "Tone"
|
||
rxtone = txtone = int(mem.ctone * 10)
|
||
rxtone = txtone = int(mem.ctone * 10) + 0x8000
|
||
elif mem.tmode == "DTCS":
|
||
tx_mode = rx_mode = "DTCS"
|
||
txtone = _set_dcs(mem.dtcs, mem.dtcs_polarity[0])
|
||
... | ... | |
if tx_mode == "DTCS":
|
||
txtone = _set_dcs(mem.dtcs, mem.dtcs_polarity[0])
|
||
elif tx_mode == "Tone":
|
||
txtone = int(mem.rtone * 10)
|
||
txtone = int(mem.rtone * 10) + 0x8000
|
||
if rx_mode == "DTCS":
|
||
rxtone = _set_dcs(mem.rx_dtcs, mem.dtcs_polarity[1])
|
||
elif rx_mode == "Tone":
|
||
rxtone = int(mem.ctone * 10)
|
||
rxtone = int(mem.ctone * 10) + 0x8000
|
||
_mem.rxtone = rxtone
|
||
_mem.txtone = txtone
|