I'm not certain that read() is queue-able. You may need to start a subsequent read() from the readDone() of the previous. First try putting your led1 toggle in Sensor_7 done, because (if they are not queueing) that one is probably the one that actually executes. Also try doing just one read() and see if you can get that to work.
MS ps...your English is infinitely better than my Italian... Francesco Ficarola wrote: > Good evening. > I'm Francesco Ficarola, an italian student (so sorry for my bad > english) of the Computer Engeneering (II level degree) in "La > Sapienza" University. I download MDA300CA driver by > "tinyos-2.x-contrib/uoit/mda300ca" because I must do a thesis about > this platform. My hardware is MIB520, Iris Mote XM2110CA and MDA300CA > Sensor Board. > I wrote my first application in nesC (TinyOS 2.1.1) to read the ADC > values of the MDA300CA single channels, but certainly there is > something wrong because the readDone event is never called. I know it > because in this event I call Leds.led1Toggle() to debug it and it > doesn't turn on. Can you help me, please? You can find my code in > attached. > > Thanks in advance for availability. > > Greetings, > Francesco Ficarola > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
