It seams that the problem have been introduced in 9/2/2013 "[UV-5R] Add
support for editing the 15 PTT ID Codes" patch.
After analisys of the debug.log I'm pretty sure that he has a value
grather then 15 in any of the memobj.pttid[i].code elements.
This takes one of the "%x" to be 2 char instead of just one.
This is the only explanation I found to have
val = RadioSettingValueString(0, 5, _code, False)
fail because of a _code longer then 5.
My two cents ..
73 de IZ3GME Marco