# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1592146958 14400 # Sun Jun 14 11:02:38 2020 -0400 # Node ID ee41ee136997b810bdd52cf06f835ec5171b47f2 # Parent 00d344ebb6e026c5691a2b10feeec6e25f928cac [TERMN-8R] Add Anytone TERMN-8R Valid Tuning Steps
Also for Anytone OBLTR-8R
Fixes #6561
diff -r 00d344ebb6e0 -r ee41ee136997 chirp/drivers/anytone_ht.py --- a/chirp/drivers/anytone_ht.py Sun Jun 14 10:44:14 2020 -0400 +++ b/chirp/drivers/anytone_ht.py Sun Jun 14 11:02:38 2020 -0400 @@ -430,6 +430,7 @@ rf.has_settings = True rf.has_bank = False rf.has_cross = True + rf.valid_tuning_steps = [2.5, 5, 6.25, 10, 12.5, 20, 25, 30, 50] rf.has_tuning_step = False rf.has_rx_dtcs = True rf.valid_skips = ["", "S"] @@ -485,6 +486,12 @@ return mem
mem.freq = int(_mem.freq) * 100 + + # compensate for 6.25 and 12.5 kHz tuning steps, add 500 Hz if needed + lastdigit = int(_mem.freq) % 10 + if (lastdigit == 2 or lastdigit == 7): + mem.freq += 50 + mem.offset = int(_mem.offset) * 100 mem.name = self.filter_name(str(_mem.name).rstrip()) mem.duplex = DUPLEXES[_mem.duplex]