[chirp_devel] [PATCH] [uv-b5] fix for proper display of STEP setting value
Jim Unroe
Sat Oct 19 06:56:56 PDT 2013
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1382190575 14400
# Node ID c9ba0051b895692503d39b3f4b8db152ac6a1488
# Parent f326c0deb8f31d855f0d933bbbf4b50fd3a03352
[uv-b5] fix for proper display of STEP setting value
update memory structure to define 'step'
add Step setting to allow user to edit the STEP value
fix for Bug #1179
diff -r f326c0deb8f3 -r c9ba0051b895 chirp/uvb5.py
--- a/chirp/uvb5.py Fri Oct 18 14:36:59 2013 -0500
+++ b/chirp/uvb5.py Sat Oct 19 09:49:35 2013 -0400
@@ -38,7 +38,8 @@
highpower:1,
revfreq:1,
duplex:2;
- u8 unknown[4];
+ u8 step;
+ u8 unknown[3];
};
#seekto 0x0000;
@@ -372,6 +373,16 @@
RadioSettingValueBoolean(_mem.compander))
mem.extra.append(rs)
+ options = ["5.00K", "6.25K", "10.00K", "12.50K", "20.00K", "25.00K"]
+ if _mem.step != 0xFF:
+ val1 = _mem.step
+ else:
+ val1 = 0
+ rs = RadioSetting("step", "Steps",
+ RadioSettingValueList(options,
+ options[val1]))
+ mem.extra.append(rs)
+
return mem
def set_memory(self, mem):
More information about the chirp_devel
mailing list