[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/storage/Log RandRWC.nc, 1.5, 1.6
David Gay
idgay at users.sourceforge.net
Mon Jun 23 13:02:25 PDT 2008
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv376
Modified Files:
RandRWC.nc
Log Message:
compile fixes
Index: RandRWC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log/RandRWC.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** RandRWC.nc 20 Apr 2007 17:39:37 -0000 1.5
--- RandRWC.nc 23 Jun 2008 20:02:19 -0000 1.6
***************
*** 66,74 ****
void report(error_t e) {
! uint8_t *msg = call AMSend.getPayload(&reportmsg);
! msg[0] = e;
! if (call AMSend.send(AM_BROADCAST_ADDR, &reportmsg, 1) != SUCCESS)
! call Leds.led0On();
}
--- 66,78 ----
void report(error_t e) {
! uint8_t *msg = call AMSend.getPayload(&reportmsg, 1);
! if (msg)
! {
! msg[0] = e;
! if (call AMSend.send(AM_BROADCAST_ADDR, &reportmsg, 1) == SUCCESS)
! return;
! }
! call Leds.led0On();
}
More information about the Tinyos-2-commits
mailing list