[Tinyos-2-commits] CVS: tinyos-2.x/apps/tosthreads/capps/TestCollection TestCollection.c, 1.2, 1.3

Kevin Klues klueska at users.sourceforge.net
Wed Jun 18 07:48:58 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/apps/tosthreads/capps/TestCollection
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv31869/apps/tosthreads/capps/TestCollection

Modified Files:
	TestCollection.c 
Log Message:
Update to TestCollection apps for tosthreads to send correct payload for displaying sensor values

Index: TestCollection.c
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tosthreads/capps/TestCollection/TestCollection.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TestCollection.c	17 Jun 2008 19:07:49 -0000	1.2
--- TestCollection.c	18 Jun 2008 14:48:56 -0000	1.3
***************
*** 65,69 ****
      for (;;) {
        if ( collectionReceive(&recvbuf, 0, AM_OSCILLOSCOPE) == SUCCESS) {
!         amSerialSend(AM_BROADCAST_ADDR, &recvbuf, sizeof(local), AM_OSCILLOSCOPE);
          report_received();
        }
--- 65,72 ----
      for (;;) {
        if ( collectionReceive(&recvbuf, 0, AM_OSCILLOSCOPE) == SUCCESS) {
!         oscilloscope_t *recv_o = (oscilloscope_t *) collectionGetPayload(&recvbuf, sizeof(oscilloscope_t));
!         oscilloscope_t *send_o = (oscilloscope_t *) serialGetPayload(&sendbuf, sizeof(oscilloscope_t));
!         memcpy(send_o, recv_o, sizeof(oscilloscope_t));
!         amSerialSend(AM_BROADCAST_ADDR, &sendbuf, sizeof(local), AM_OSCILLOSCOPE);
          report_received();
        }



More information about the Tinyos-2-commits mailing list