[chirp_devel] [PATCH] [AT-5888UV] Add Anytone AT-5888UV Valid Tuning Steps
Jim Unroe
Sun Jun 14 07:20:28 PDT 2020
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1592094953 14400
# Sat Jun 13 20:35:53 2020 -0400
# Node ID 9fa4733966659688715e0caf8400e9117dd3b8d1
# Parent 8d6dbc13b671ee1ad7c85eac8396fe82e835b7c1
[AT-5888UV] Add Anytone AT-5888UV Valid Tuning Steps
Fixes #7835
diff -r 8d6dbc13b671 -r 9fa473396665 chirp/drivers/anytone.py
--- a/chirp/drivers/anytone.py Fri Jun 12 16:00:59 2020 -0400
+++ b/chirp/drivers/anytone.py Sat Jun 13 20:35:53 2020 -0400
@@ -353,6 +353,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, 15, 20, 25, 30, 50]
rf.has_tuning_step = False
rf.has_rx_dtcs = True
rf.valid_skips = ["", "S", "P"]
@@ -410,6 +411,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 = str(_mem.name).rstrip()
mem.duplex = DUPLEXES[_mem.duplex]
More information about the chirp_devel
mailing list