[Tinyos-2-commits] CVS: tinyos-2.x/apps/tutorials/PacketParrot
PacketParrotP.nc, 1.2, 1.3 README.txt, 1.2, 1.3
Prabal Dutta
prabal at users.sourceforge.net
Thu Apr 19 00:39:20 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/apps/tutorials/PacketParrot
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv1012
Modified Files:
PacketParrotP.nc README.txt
Log Message:
Bugfix. Now works with MicaZ nodes as the PacketParrot
Index: PacketParrotP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tutorials/PacketParrot/PacketParrotP.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PacketParrotP.nc 8 Apr 2007 14:03:51 -0000 1.2
--- PacketParrotP.nc 19 Apr 2007 07:39:18 -0000 1.3
***************
*** 65,72 ****
event void AMControl.startDone(error_t err) {
if (err == SUCCESS) {
! error_t e;
! do {
! e = call LogRead.read(&m_entry, sizeof(logentry_t));
! } while (e != SUCCESS);
}
else {
--- 65,71 ----
event void AMControl.startDone(error_t err) {
if (err == SUCCESS) {
! if (call LogRead.read(&m_entry, sizeof(logentry_t)) != SUCCESS) {
! // Handle error.
! }
}
else {
***************
*** 98,106 ****
call Leds.led1Off();
if ( (err == SUCCESS) && (msg == &m_entry.msg) ) {
- error_t e;
call Packet.clear(&m_entry.msg);
! do {
! e = call LogRead.read(&m_entry, sizeof(logentry_t));
! } while (e != SUCCESS);
}
else {
--- 97,104 ----
call Leds.led1Off();
if ( (err == SUCCESS) && (msg == &m_entry.msg) ) {
call Packet.clear(&m_entry.msg);
! if (call LogRead.read(&m_entry, sizeof(logentry_t)) != SUCCESS) {
! // Handle error.
! }
}
else {
Index: README.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tutorials/PacketParrot/README.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** README.txt 8 Apr 2007 14:03:51 -0000 1.2
--- README.txt 19 Apr 2007 07:39:18 -0000 1.3
***************
*** 56,60 ****
Only works on motes with the CC2420 radio. Tested and verified with
! TelosB and Tmote nodes. Also works with MicaZ (as the BlinkToRadio
! node) and TelosB/Tmote as the parrot node. Currently, using a MicaZ
! as the parrot does not work and needs to be debugged.
--- 56,58 ----
Only works on motes with the CC2420 radio. Tested and verified with
! TelosB, Tmote, and MicaZ nodes.
More information about the Tinyos-2-commits
mailing list