ps...in the original code, you probably don't really need the atomics (or the intermediate "tb" because the "blocking" value is a single byte and the test is only going one way, which is (I think, under all conditions) going to be reliably TRUE or FALSE from instruction to instruction...
Correct. I elimintated the atomic blocks and changed the global variable to: norace volatile bool blocking; Works fine now. _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help