[chirp_devel] [PATCH] [RT1] Add Support for Retevis RT1(fix for build failures)
Jim Unroe
Mon Dec 19 15:05:54 PST 2016
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1482188283 18000
# Node ID 49fed5b04540b874846bd1c246882ef9fb6ab529
# Parent 18381e84f72a0d19d767ea1cf88802e8991fca70
[RT1] Add Support for Retevis RT1(fix for build failures)
This patch addresses the build failures of the previously submitted patch.
#4313
diff -r 18381e84f72a -r 49fed5b04540 chirp/drivers/retevis_rt1.py
--- a/chirp/drivers/retevis_rt1.py Mon Dec 19 17:51:33 2016 -0500
+++ b/chirp/drivers/retevis_rt1.py Mon Dec 19 17:58:03 2016 -0500
@@ -369,13 +369,12 @@
rf.valid_duplexes = ["", "-", "+", "split", "off"]
rf.valid_modes = ["NFM", "FM"] # 12.5 KHz, 25 kHz.
rf.memory_bounds = (1, 16)
- if self._my_band() == RT1_VHF_fp:
+ if self._mmap is None:
+ rf.valid_bands = [self._vhf_range, self._uhf_range]
+ elif self._my_band() == RT1_VHF_fp:
rf.valid_bands = [self._vhf_range]
elif self._my_band() == RT1_UHF_fp:
rf.valid_bands = [self._uhf_range]
- else:
- rf.valid_bands = [self._vhf_range,
- self._uhf_range]
return rf
More information about the chirp_devel
mailing list