Dan,<br>BCL fails in this morning's build because of the uppercase "BCL" in the name value. When code such at this is added to mem.extra, CHIRP does not like capital letters, white space or symbols like hyphen or underline in this value.<br>
Jim<br><br> rs = RadioSetting("bcl", "BCL",<br> RadioSettingValueBoolean(_mem.bcl))<br> mem.extra.append(rs)<br><br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 8:18 PM, Jim Unroe <span dir="ltr"><<a href="mailto:rock.unroe@gmail.com" target="_blank">rock.unroe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Jim Unroe <<a href="mailto:rock.unroe@gmail.com">rock.unroe@gmail.com</a>><br>
# Date 1360113383 18000<br>
# Node ID 89a63a318305099751b14dd8f45af3e782ac0f70<br>
# Parent 41b8c8a428c3136a49ba9742b79752a6f764602d<br>
[uv5r] add busy channel lockout settings - take 2<br>
#501<br>
<br>
diff -r 41b8c8a428c3 -r 89a63a318305 chirp/uv5r.py<br>
--- a/chirp/uv5r.py Mon Jan 28 20:30:01 2013 -0500<br>
+++ b/chirp/uv5r.py Tue Feb 05 20:16:23 2013 -0500<br>
@@ -30,14 +30,18 @@<br>
lbcd txfreq[4];<br>
ul16 rxtone;<br>
ul16 txtone;<br>
- u8 unknown1[2];<br>
+ u8 unused1:4,<br>
+ scode:4;<br>
+ u8 unknown1[1];<br>
u8 unknown2:7,<br>
lowpower:1;<br>
u8 unknown3:1,<br>
wide:1,<br>
- unknown4:3,<br>
+ unknown4:2,<br>
+ bcl:1,<br>
scan:1,<br>
- unknown5:2;<br>
+ pttideot:1,<br>
+ pttidbot:1;<br>
} memory[128];<br>
<br>
#seekto 0x0CB2;<br>
@@ -555,6 +559,12 @@<br>
mem.power = UV5R_POWER_LEVELS[_mem.lowpower]<br>
mem.mode = _mem.wide and "FM" or "NFM"<br>
<br>
+ mem.extra = RadioSettingGroup("Extra", "extra")<br>
+<br>
+ rs = RadioSetting("bcl", "bcl",<br>
+ RadioSettingValueBoolean(_mem.bcl))<br>
+ mem.extra.append(rs)<br>
+<br>
return mem<br>
<br>
def set_memory(self, mem):<br>
@@ -625,6 +635,9 @@<br>
_mem.wide = mem.mode == "FM"<br>
_mem.lowpower = mem.power == UV5R_POWER_LEVELS[1]<br>
<br>
+ for setting in mem.extra:<br>
+ setattr(_mem, setting.get_shortname(), setting.value)<br>
+<br>
def _is_orig(self):<br>
version_tag = _firmware_version_from_image(self)<br>
try:<br>
</blockquote></div><br>