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

Wouldn't this be simpler as an array?

Tom