[Tinyos-devel] possible bug in genjava.pm?
Rishi Pidva
rishi.pidva at gmail.com
Tue Jan 15 14:39:34 PST 2008
Thanks! It works now.
On Jan 15, 2008 2:21 PM, David Gay <dgay42 at gmail.com> wrote:
>
> On Jan 15, 2008 2:07 PM, Rishi Pidva <rishi.pidva at gmail.com> wrote:
> > When running mig on data structures with 16bit array, the generated
> > code takes the array elements as 8 bits (in the toString code). For
> > ex, if you run mig on Oscilloscope in T2, in the toString() method,
> > the readings array has masking with 0xff while its a 16-bit reading.
> > This will cause a wrong reading display.
> >
> > Is there an updated version of genjava.pm cos the one I have was
> > included in T2 live cd.
> >
> > I haven't gone thru the perl module to see why is this happening with arrays.
>
> Looks like replacing bitlength with $bitlength on lines 145 and 148 of
> genjava.pm should fix the problem (can you let me know if this
> works?). Thanks for the report!
>
> David Gay
>
More information about the Tinyos-devel
mailing list