Hi,

While trying to use tos.lib.net.lqi, I get the following warnings:

/opt/tinyos-2.x/tos/lib/net/SendVirtualizerP.nc: In function 
`SendVirtualizerP$0$nextPacket':
/opt/tinyos-2.x/tos/lib/net/SendVirtualizerP.nc:57: warning: division by 
zero
/opt/tinyos-2.x/tos/lib/net/SendVirtualizerP.nc:58: warning: comparison 
is always false due to limited range of data type
/opt/tinyos-2.x/tos/lib/net/SendVirtualizerP.nc:62: warning: division by 
zero
/opt/tinyos-2.x/tos/lib/net/SendVirtualizerP.nc:68: warning: comparison 
is always true due to limited range of data type
/opt/tinyos-2.x/tos/lib/net/SendVirtualizerP.nc: In function 
`SendVirtualizerP$0$tryToSend':
/opt/tinyos-2.x/tos/lib/net/SendVirtualizerP.nc:160: warning: comparison 
is always false due to limited range of data type

My understanding of these warnings is that the internal constant of the 
number of clients (NUM_LQI_CLIENTS) is zero (0) rather than one (1). The 
constant is defined in:

/opt/tinyos-2.x/tos/lib/net/lqi/MultiHopLqi.h:97:  NUM_LQI_CLIENTS = 
uniqueCount(UQ_LQI_CLIENT),

as an enum constant. According to some messages I found in the archive 
as well as the nesc documentation the value of NUM_LQI_CLIENTS should at 
least be 1 (rather than 0) as the compiler function uniqueCount() gets 
called at least once. I also read that there was a bug in earlier 
version (but only for mig), so just to be on the safe side I updated my 
tool set. Still no success. Any ideas what is not working here?

Cheers,
Urs

PS: My setup is:
Mac OS X (10.5.5, intel)
ncc 1.2.4
nescc 1.3.0
tinyos-2.x CVS version (update today, tinyos-tools was recompiled after 
the CVS update)
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to