I'm sure this is covered in th tutorial. You need to put the code in an atomic block. This keeps other tasks from writing to the variable and getting things out of sync.
It's a warning anyway. It's not strictly essential to fix it. Eric On Wed, Oct 8, 2008 at 10:16 AM, <[EMAIL PROTECTED]> wrote: > "/opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc:52: warning: > non-atomic accesses to shared variable `power': > /opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc:366: warning: > non-atomic write > compiled BlinkVAppC to build/mica2/main.exe > 10912 bytes in ROM > 265 bytes in RAM > avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec > avr-objcopy --output-target=ihex build/mica2/main.exe build/mica2/main.ihex > writing TOS image" > > Anyone have an idea of what is this? This appears regularly when I use > setRFPower, or I probably did something wrong? > > > > Thanks, > Fernando. > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
