[Tinyos-devel] possible bug in genjava.pm?
Matt Welsh
mdw at eecs.harvard.edu
Tue Jan 15 14:46:15 PST 2008
Would "use Strict;" have warned us of this problem sooner? There might
be other lurking Perl bugs like this...
On Jan 15, 2008, at 5:39 PM, Rishi Pidva wrote:
> 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
>>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
More information about the Tinyos-devel
mailing list