[chirp_devel] Quick Multi-bank editor

Jon Kåre Hellan
Mon May 23 22:56:12 PDT 2011


On 05/24/2011 12:21 AM, Dan Smith wrote:
>>           def make_cb(i):
>>               def cb(members):
>>                   self._bank_members[i] = members
>>               return cb
>
> Can you explain this change?
>

'i' was always the number of the last bank when cb was called. Looks 
like 'cb' got redefined with a new 'i' for each iteration.

Regards

Jon LA4RT



More information about the chirp_devel mailing list