[chirp_devel] [PATCH] [uv-5r] Add Support to Display Firmware Version in 'Other Settings' Menu

Jim Unroe
Sat May 4 16:52:38 PDT 2013


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1367710602 14400
# Node ID d2fb093887e9440fe4eefebd9c36fb0b5e185333
# Parent  22dc44ad029814b46314fa55bc3301a5795b27c1
[uv-5r] Add Support to Display Firmware Version in 'Other Settings' Menu
add sturcture for firmware version
add muted settings to display the firmware version
(2 lines of 7 characters)
#845

diff -r 22dc44ad0298 -r d2fb093887e9 chirp/uv5r.py
--- a/chirp/uv5r.py	Sat May 04 14:02:29 2013 -0700
+++ b/chirp/uv5r.py	Sat May 04 19:36:42 2013 -0400
@@ -201,6 +201,12 @@
   char line2[7];
 } poweron_msg;
 
+#seekto 0x1838;
+struct {
+  char line1[7];
+  char line2[7];
+} firmware_msg;
+
 struct limit {
   u8 enable;
   bbcd lower[2];
@@ -850,6 +856,17 @@
                     filtered += " "
             return filtered
 
+        _msg = self._memobj.firmware_msg
+        val = RadioSettingValueString(0, 7, _filter(_msg.line1))
+        val.set_mutable(False)
+        rs = RadioSetting("firmware_msg.line1", "Firmware Message 1", val)
+        other.append(rs)
+
+        val = RadioSettingValueString(0, 7, _filter(_msg.line2))
+        val.set_mutable(False)
+        rs = RadioSetting("firmware_msg.line2", "Firmware Message 2", val)
+        other.append(rs)
+
         _msg = self._memobj.sixpoweron_msg
         rs = RadioSetting("sixpoweron_msg.line1", "6+Power-On Message 1",
                           RadioSettingValueString(0, 7, _filter(_msg.line1)))



More information about the chirp_devel mailing list