[chirp_devel] bitwise and arrays outside of structures

Jens J.
Sat Sep 7 18:02:40 PDT 2013


when I use this:
u16 bank_used[20];

instead of putting the array in a struct like:
struct {
    u16 in_use;
} bank_used[20];

I get:

Traceback (most recent call last):
  File "/Users/jens/build/chirp.hg/chirpui/radiobrowser.py", line 263, in _tree_click
    for name, item in obj.items():
  File "/Users/jens/build/chirp.hg/chirp/bitwise.py", line 155, in __getattr__
    self.__class__))
AttributeError: Unknown attribute items in chirp.bitwise.u16DataElement

Would it be possible to declare arrays outside of structures?

-Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20130907/f8881934/attachment-0001.html 


More information about the chirp_devel mailing list