[chirp_devel] [PATCH] [UV-B5] Modify to support 99 channels

Jim Unroe
Sat May 4 09:16:13 PDT 2013


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1367683938 14400
# Node ID a0cecb11c0894526d9ca7464d9d4a0ea4f3efebd
# Parent  ed86c7d025631d37e397016793fad549f3817151
[UV-B5] Modify to support 99 channels.
The current UV-B5 driver supports 128 channels.
The radio only has a capacity of 99 channels.
#841

diff -r ed86c7d02563 -r a0cecb11c089 chirp/uvb5.py
--- a/chirp/uvb5.py	Sun Apr 21 19:08:06 2013 -0400
+++ b/chirp/uvb5.py	Sat May 04 12:12:18 2013 -0400
@@ -43,14 +43,14 @@
 char ident[32];
 u8 blank[16];
 struct memory vfo1;
-struct memory channels[128];
+struct memory channels[99];
 #seekto 0x0850;
 struct memory vfo2;
 
 #seekto 0x0A30;
 struct {
   u8 name[5];
-} names[128];
+} names[99];
 
 #seekto 0x0D30;
 struct {
@@ -175,7 +175,7 @@
         rf.has_ctone = True
         rf.has_bank = False
         rf.has_tuning_step = False
-        rf.memory_bounds = (1, 128)
+        rf.memory_bounds = (1, 99)
         return rf
 
     def sync_in(self):



More information about the chirp_devel mailing list