Tony -
Off the top of my head, I'm really not quite sure if this will affect the
behavior of your application. I've seen this warning, and have never had a
problem.
The warning is given because a uint8_t variable is being compared to
preprocessor variable, NUM_VOLUMES, which is set by
uniqueCount("StorageManager").
To remove the warning, edit the StorageManagerM.nc file and change the
uint8_t i variable in StdControl.init() to an int.
David
-----Original Message-----
From: L Tony [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 4:57 PM
To: [EMAIL PROTECTED]
Subject: RE: [Tinyos-help] write/read from flash on telosb mote
Hi, David
I think I lack some files because I use an old version of TinyOS. I have
updated the relevant files. Now I get a compile result as below, does the
warning affect the program? Thanks.
Best regards,
Tony
----------------------------------------------------------------------------
--------
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/Flash/STM25P/StorageManagerM.n
c:
I
n function `StorageManagerM$StdControl$init':
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/Flash/STM25P/StorageManagerM.n
c:80
: warning: comparison is always false due to limited range of data type
compiled WriteToFlashC to build/telosb/main.exe
6316 bytes in ROM
388 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe
build/telosb/main.ihex
writing TOS image
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help