[chirp_devel] [PATCH] Subsequent support for skip memories in IC-V85 driver. Fixes #276
Kosta A.
Mon Sep 27 11:52:36 PDT 2021
# HG changeset patch
# User Kosta A. <ve7kcy at gmail.com>
# Date 1632768644 25200
# Mon Sep 27 11:50:44 2021 -0700
# Branch ic-v85
# Node ID 162de81d78bdf12eb5da8e206e84d781957bc1eb
# Parent a478d318143bb7ded2bac5e241156e6c707b0042
Subsequent support for skip memories in IC-V85 driver. Fixes #276
diff --git a/chirp/drivers/icv85.py b/chirp/drivers/icv85.py
--- a/chirp/drivers/icv85.py
+++ b/chirp/drivers/icv85.py
@@ -65,8 +65,8 @@
SPECIAL_CHANNELS = {
"1A": 100, "1B": 101,
- "2A": 102, "1B": 103,
- "3A": 104, "1B": 105,
+ "2A": 102, "2B": 103,
+ "3A": 104, "3B": 105,
"C": 106,
}
@@ -168,9 +168,9 @@
mem.freq = int(_mem.freq) * 5000
mem.offset = int(_mem.offset) * 5000
- if number < 100:
+ if mem.extd_number == "":
mem.name = str(_mem.name).rstrip()
- if not extd_number == "C":
+ if not mem.extd_number == "C":
mem.skip = (_flag.skip) and "S" or ""
mem.duplex = DUPLEXES[_mem.duplex]
mem.power = POWER_LEVELS[_mem.power]
@@ -257,8 +257,12 @@
_mem.dtcs = chirp_common.DTCS_CODES.index(mem.dtcs)
_mem.dtcs_polarity = DTCS_POLARITY.index(mem.dtcs_polarity)
+ # Set used
_flag.unused = False
- _flag.skip = mem.skip == "S"
+
+ # Set skip
+ if not mem.extd_number == "C":
+ _flag.skip = mem.skip == "S"
def set_memory(self, mem):
if not self._mmap:
More information about the chirp_devel
mailing list