[chirp_devel] bitwise struct syntax error

Dan Smith
Thu Jun 1 16:26:18 PDT 2023


> struct {
>     channel low_limit;
>     channel high_limit;
> } vfo_scan_limits[5];

I think your problem is that this should be "struct channel low_limit" like you do above for the memory array. In C parlance, there's no typedef of 'struct channel' to 'channel'.

> Is this just a bug in the grammar? Or, is my definition of five pairs too complicated for bitwise? 
> Should I stick to an array of 10 scalars, and do the odd/even math in my code? Easy enough, but not nearly as elegant.

I *think* you should be good (with the above) but yeah it might be pushing the limits.

--Dan


More information about the chirp_devel mailing list