[chirp_devel] [PATCH] [bj-uv55] fix fm setting #1335

Jens Jensen
Mon Jan 6 21:46:28 PST 2014


# HG changeset patch
# User Jens Jensen <kd4tjx at yahoo.com>
# Date 1389073505 21600
#      Mon Jan 06 23:45:05 2014 -0600
# Node ID 01fbc99d901e3d26f71315ab01006dbcc36d094c
# Parent  9b34ea6769cf7b4bb3e6c8b8147072a19474e6fa
[bj-uv55] fix fm setting #1335

diff -r 9b34ea6769cf -r 01fbc99d901e chirp/bjuv55.py
--- a/chirp/bjuv55.py	Mon Jan 06 23:23:36 2014 -0600
+++ b/chirp/bjuv55.py	Mon Jan 06 23:45:05 2014 -0600
@@ -186,8 +186,8 @@
      unknown5:6;
 } vfob;
 
-#seekto 0x0F56;
-u16 fm_presets;
+#seekto 0x0F57;
+u8 fm_preset;
 
 #seekto 0x1008;
 struct {
@@ -549,8 +549,8 @@
         fm_preset = RadioSettingGroup("fm_preset", "FM Radio Preset")
         group.append(fm_preset)
 
-        preset = self._memobj.fm_presets / 10.0 + 87
-        rs = RadioSetting("fm_presets", "FM Preset(MHz)",
+        preset = self._memobj.fm_preset / 10.0 + 87
+        rs = RadioSetting("fm_preset", "FM Preset(MHz)",
                       RadioSettingValueFloat(87, 107.5, preset, 0.1, 1))
         fm_preset.append(rs)
 
@@ -635,8 +635,8 @@
             try:
                 val = element.value
                 value = int(val.get_value() * 10 - 870)
-                print "Setting fm_presets = %s" % (value)
-                self._memobj.fm_presets = value
+                print "Setting fm_preset = %s" % (value)
+                self._memobj.fm_preset = value
             except Exception, e:
                 print element.get_name()
-                raise
\ No newline at end of file
+                raise



More information about the chirp_devel mailing list