Tom,<br>Thanks. The thing that scares me is that I think I understand what you are suggesting here.<br><br>After sleeping on it (and I mean it literally, it's just before 3am), here's what concerns me about this vs. what I submitted.<br>
<br>My first try was all of the settings were inside a singe try: except Exception:<br>During my testing, if any code was not 5 digits, then all codes were all rejected. Splitting it out like I did, only the less than 5 digit codes were missing.<br>
<br>So I think some of this discussion needs to be how to eliminate the CHIRP requirement for each code to be 5 digits since the OEM software and UV-5R accept any number of digits including no digits.<br>Jim<br><br><div class="gmail_quote">
On Sat, Feb 9, 2013 at 9:33 PM, Tom Hayward <span dir="ltr"><<a href="mailto:esarfl@gmail.com" target="_blank">esarfl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, Feb 9, 2013 at 6:27 PM, Tom Hayward <<a href="mailto:esarfl@gmail.com">esarfl@gmail.com</a>> wrote:<br>
> So it would be something like this (untested):<br>
> #seekto 0x0B08;<br>
> struct {<br>
> struct {<br>
> u8 code[5];<br>
> u8 unused[11];<br>
> } pttid[15];<br>
> } pttid_set;<br>
<br>
</div>Oops, I over-complicated that. Try this:<br>
<div class="im">struct {<br>
u8 code[5];<br>
u8 unused[11];<br>
} pttid[15];<br>
<br>
</div>Now instead of calling pttid.code0, call pttid[0].code. Or:<br>
<br>
for pttid in self._memobj.pttid:<br>
_code = pttid.code<br>
... # create setting, etc<br>
<div class="HOEnZb"><div class="h5"><br>
Tom<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
</div></div></blockquote></div><br>