<p dir="ltr"><br>
On Feb 9, 2013 5:01 PM, "Jim Unroe" <<a href="mailto:rock.unroe@gmail.com">rock.unroe@gmail.com</a>> wrote:<br>
><br>
> # HG changeset patch<br>
> # User Jim Unroe <<a href="mailto:rock.unroe@gmail.com">rock.unroe@gmail.com</a>><br>
> # Date 1360457827 18000<br>
> # Node ID cee9b13d3842a257da6e1de6362dad02d88638d2<br>
> # Parent 2b2d547074f2b177447b39cbf4dd67f02a775a92<br>
> [UV-5R] Add support for editing the 15 PTT ID Codes<br>
> add supporting structure for PTT ID Codes<br>
> add DTMF Settings tab<br>
> add PTT ID Code 1-15 settings<br>
> #539<br>
><br>
> diff -r 2b2d547074f2 -r cee9b13d3842 chirp/uv5r.py<br>
> --- a/chirp/uv5r.py Fri Feb 08 16:20:22 2013 -0800<br>
> +++ b/chirp/uv5r.py Sat Feb 09 19:57:07 2013 -0500<br>
> @@ -44,6 +44,40 @@<br>
> pttidbot:1;<br>
> } memory[128];<br>
><br>
> +#seekto 0x0B08;<br>
> +struct {<br>
> + u8 code0[5];<br>
> + u8 unused1[11];<br>
> + u8 code1[5];<br>
> + u8 unused2[11];<br>
> + u8 code2[5];<br>
> + u8 unused3[11];<br>
> + u8 code3[5];<br>
> + u8 unused4[11];<br>
> + u8 code4[5];<br>
> + u8 unused5[11];<br>
> + u8 code5[5];<br>
> + u8 unused6[11];<br>
> + u8 code6[5];<br>
> + u8 unused7[11];<br>
> + u8 code7[5];<br>
> + u8 unused8[11];<br>
> + u8 code8[5];<br>
> + u8 unused9[11];<br>
> + u8 code9[5];<br>
> + u8 unused10[11];<br>
> + u8 codea[5];<br>
> + u8 unused11[11];<br>
> + u8 codeb[5];<br>
> + u8 unused12[11];<br>
> + u8 codec[5];<br>
> + u8 unused13[11];<br>
> + u8 coded[5];<br>
> + u8 unused14[11];<br>
> + u8 codee[5];<br>
> + u8 unused15[11];<br>
> +} pttid;</p>
<p dir="ltr">Wouldn't this be simpler as an array? </p>
<p dir="ltr">Tom <br>
</p>