[chirp_devel] [PATCH] Support Wouxun KG-818 with KG-816 driver. #356

Tom Hayward
Sun Feb 17 13:51:30 PST 2013


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1361137865 28800
# Node ID abb496486b4d3a49d69d38136508a0d8ab63b2fe
# Parent  3aeeaedfb5f721bf72c26a416b0a053f96173831
Support Wouxun KG-818 with KG-816 driver. #356

diff -r 3aeeaedfb5f7 -r abb496486b4d chirp/wouxun.py
--- a/chirp/wouxun.py	Sat Feb 16 21:30:58 2013 -0500
+++ b/chirp/wouxun.py	Sun Feb 17 13:51:05 2013 -0800
@@ -953,42 +953,42 @@
         top = RadioSettingGroup("top", "All Settings", freqranges)
 
         rs = RadioSetting("vhf_rx_start", "vhf rx start",
-                          RadioSettingValueInteger(136, 520, 
+                          RadioSettingValueInteger(66, 520,
                                 decode_freq(
                                     self._memobj.freq_ranges.vhf_rx_start)))
         freqranges.append(rs)
         rs = RadioSetting("vhf_rx_stop", "vhf rx stop",
-                          RadioSettingValueInteger(136, 520, 
+                          RadioSettingValueInteger(66, 520,
                                 decode_freq(
                                     self._memobj.freq_ranges.vhf_rx_stop)))
         freqranges.append(rs)
         rs = RadioSetting("uhf_rx_start", "uhf rx start",
-                          RadioSettingValueInteger(136, 520, 
+                          RadioSettingValueInteger(66, 520,
                                 decode_freq(
                                     self._memobj.freq_ranges.uhf_rx_start)))
         freqranges.append(rs)
         rs = RadioSetting("uhf_rx_stop", "uhf rx stop",
-                          RadioSettingValueInteger(136, 520, 
+                          RadioSettingValueInteger(66, 520,
                                 decode_freq(
                                     self._memobj.freq_ranges.uhf_rx_stop)))
         freqranges.append(rs)
         rs = RadioSetting("vhf_tx_start", "vhf tx start",
-                          RadioSettingValueInteger(136, 520, 
+                          RadioSettingValueInteger(66, 520,
                                 decode_freq(
                                     self._memobj.freq_ranges.vhf_tx_start)))
         freqranges.append(rs)
         rs = RadioSetting("vhf_tx_stop", "vhf tx stop",
-                          RadioSettingValueInteger(136, 520, 
+                          RadioSettingValueInteger(66, 520,
                                 decode_freq(
                                     self._memobj.freq_ranges.vhf_tx_stop)))
         freqranges.append(rs)
         rs = RadioSetting("uhf_tx_start", "uhf tx start",
-                          RadioSettingValueInteger(136, 520, 
+                          RadioSettingValueInteger(66, 520,
                                 decode_freq(
                                     self._memobj.freq_ranges.uhf_tx_start)))
         freqranges.append(rs)
         rs = RadioSetting("uhf_tx_stop", "uhf tx stop",
-                          RadioSettingValueInteger(136, 520, 
+                          RadioSettingValueInteger(66, 520,
                                 decode_freq(
                                     self._memobj.freq_ranges.uhf_tx_stop)))
         freqranges.append(rs)
@@ -1010,3 +1010,8 @@
             return True
         return False
 
+
+ at directory.register
+class KG818Radio(KG816Radio):
+    """Wouxun KG-818"""
+    MODEL = "KG-818"



More information about the chirp_devel mailing list