Closed jamwaffles closed 3 years ago
I ran into a strange issue with RW or RO fields. Minimal repro:
RW
RO
implement_registers!( Max17302.registers<u16> = { test2(RW, 0x01B, 2) = { vcell: u16:LE = RW 0..16 }, } );
This gives an "unexpected token ..." error. Either removing :LE or changing both occurrences of RW to RO would fix the compilation error. Eventually tracked it down to the changes in this PR.
:LE
Ah, that looks like some sloppy copy pasting from my side... Looks good, thanks for the PR!
Also created a new release: 0.1.2
Awesome, thank you for the fast response!
I ran into a strange issue with
RW
orRO
fields. Minimal repro:This gives an "unexpected token ..." error. Either removing
:LE
or changing both occurrences ofRW
toRO
would fix the compilation error. Eventually tracked it down to the changes in this PR.