[chirp_devel] [PATCH] [uv5r] structure changes to help prevent 'List index out of range' errors

Jim Unroe
Thu Jan 24 16:35:43 PST 2013


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1359073670 18000
# Node ID 2ae656746ba0de2b1f38931a3d89b9dd2ced0c98
# Parent  5f4fff6266ab03ebd6720f093541c190a0fee1b8
[uv5r] structure changes to help prevent 'List index out of range' errors
releated to bug #453
#453

diff -r 5f4fff6266ab -r 2ae656746ba0 chirp/uv5r.py
--- a/chirp/uv5r.py	Mon Jan 21 14:59:40 2013 -0800
+++ b/chirp/uv5r.py	Thu Jan 24 19:27:50 2013 -0500
@@ -114,12 +114,14 @@
   u8 unknown2;
   ul16 rxtone;
   ul16 txtone;
-  u8 band;
+  u8 unused1:7,
+     band:1;
   u8 unknown3;
-  u8 scode;
+  u8 unused2:4,
+     scode:4;
   u8 unknown4;
-  u8 step:4,
-     unknown:4;
+  u8 unused3:5,
+     step:3;
   u8 txpower:1,
      widenarr:1,
      unknown5:6;
@@ -133,12 +135,14 @@
   u8 unknown2;
   ul16 rxtone;
   ul16 txtone;
-  u8 band;
+  u8 unused1:7,
+     band:1;
   u8 unknown3;
-  u8 scode;
+  u8 unused2:4,
+     scode:4;
   u8 unknown4;
-  u8 step:4,
-     unknown:4;
+  u8 unused3:5,
+     step:3;
   u8 txpower:1,
      widenarr:1,
      unknown5:6;



More information about the chirp_devel mailing list