<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 1, 2013 at 6:41 AM, Marco IZ3GME <span dir="ltr"><<a href="mailto:iz3gme.marco@gmail.com" target="_blank">iz3gme.marco@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It seams that the problem have been introduced in 9/2/2013 "[UV-5R] Add<br>
support for editing the 15 PTT ID Codes" patch.<br>
After analisys of the debug.log I'm pretty sure that he has a value<br>
grather then 15 in any of the memobj.pttid[i].code elements.<br>
This takes one of the "%x" to be 2 char instead of just one.<br></blockquote><div><br></div><div>I asked Bill to email me his .img file and sure enough PTT-ID #1 had a 0x1f in the location where the first digit would normally be. I change it with a hex editor and email it back. I received a report that it is working now.<br>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
This is the only explanation I found to have<br>
val = RadioSettingValueString(0, 5, _code, False)<br>
fail because of a _code longer then 5.<br></blockquote><div><br>That's it. If I change 5 to 6 and load the image the settings tab is available and the PTT-ID #1 is displayed as "1f0202" (6 characters long).<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
My two cents ..<br>
<br>
73 de IZ3GME Marco<br>
<div class="im"><br></div></blockquote></div><br></div><div class="gmail_extra">So my question now is what is the best way to trap this condition?<br><br>Plus while testing, I just discovered that the Baofeng software also allows *, #, A, B, C and D in addition to the 10 digits.<br>
<br></div><div class="gmail_extra">0 = 0x00<br></div><div class="gmail_extra">1 = 0x01<br></div><div class="gmail_extra">2 = 0x02<br></div><div class="gmail_extra">. . .<br></div><div class="gmail_extra">9 = 0x09<br></div>
<div class="gmail_extra">n/a = 0x0a<br></div><div class="gmail_extra">* = 0x0b<br></div><div class="gmail_extra"># = 0x0c<br></div><div class="gmail_extra">A = 0x0d<br></div><div class="gmail_extra">B = 0x0e<br></div><div class="gmail_extra">
C = 0x0f<br></div><div class="gmail_extra">D = 0x10<br><br></div><div class="gmail_extra">I wouldn't mind adding that to but I've not thought about it long enough to figure out how to do that.<br><br></div><div class="gmail_extra">
Jim <br></div></div>