[chirp_devel] [PATCH] [KG-UV6]Improve Support for the Powerwerx Wouxun KG-UV6X
# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1408832200 14400 # Node ID e015972fc22d05a1f09cc1fb640ab0c6a317bf3d # Parent d5a4ed31fa2afd5820516b8d02ed28565c960bdc [KG-UV6]Improve Support for the Powerwerx Wouxun KG-UV6X
Add "iswidex" to structures to accomodate the KG-UV6X's TX Bandwidth setting
Add "Mode TX(KG-UV6X)" to the mem.extra settings to allow editing each memory's TX Bandwidth
Add a 4th setting, "N/A(KG-UV6X)", to the options for "ponmsg" to prevent out-of-range values
#1863
diff -r d5a4ed31fa2a -r e015972fc22d chirp/wouxun.py --- a/chirp/wouxun.py Mon Aug 18 17:10:22 2014 -0400 +++ b/chirp/wouxun.py Sat Aug 23 18:16:40 2014 -0400 @@ -82,7 +82,10 @@ power_high:1, iswide:1, _2_unknown_2:4; - u8 unknown[2]; + u8 unknown; + u8 _0_unknown_1:3, + iswidex:1, + _0_unknown_2:4; } memory[199];
#seekto 0x0842; @@ -766,6 +769,13 @@ bcl.set_doc("Busy Channel Lockout") mem.extra.append(bcl)
+ options = ["NFM", "FM"] + iswidex = RadioSetting("iswidex", "Mode TX(KG-UV6X)", + RadioSettingValueList(options, + options[_mem.iswidex])) + iswidex.set_doc("Mode TX") + mem.extra.append(iswidex) + return mem
def _set_tone(self, mem, _mem): @@ -887,7 +897,10 @@ power_high:1, iswide:1, _2_unknown_2:4; - u8 pad[2]; + u8 pad; + u8 _0_unknown_1:3, + iswidex:1, + _0_unknown_2:4; } memory[199];
#seekto 0x0F00; @@ -1097,7 +1110,7 @@ return filtered
# add some radio specific settings - options = ["Off", "Welcome", "V bat"] + options = ["Off", "Welcome", "V bat", "N/A(KG-UV6X)"] rs = RadioSetting("ponmsg", "Poweron message", RadioSettingValueList(options, options[self._memobj.settings.ponmsg])) @@ -1371,7 +1384,10 @@ power_high:1, iswide:1, _2_unknown_2:4; - u8 unknown[2]; + u8 unknown; + u8 _0_unknown_1:3, + iswidex:1, + _0_unknown_2:4; } memory[199];
#seekto 0x0d70;
participants (1)
-
Jim Unroe