[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/TestNetwork
TestNetworkC.nc, 1.6, 1.7
Phil Levis
scipio at users.sourceforge.net
Thu Sep 13 16:10:53 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/TestNetwork
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27056/apps/tests/TestNetwork
Modified Files:
TestNetworkC.nc
Log Message:
The big interface switchover for Packet, Send, Receive, and AMSend.
Index: TestNetworkC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/TestNetwork/TestNetworkC.nc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TestNetworkC.nc 16 Jul 2007 14:51:57 -0000 1.6
--- TestNetworkC.nc 13 Sep 2007 23:10:20 -0000 1.7
***************
*** 85,89 ****
void sendMessage() {
! TestNetworkMsg* msg = (TestNetworkMsg*)call Send.getPayload(&packet);
uint16_t metric;
am_addr_t parent;
--- 85,89 ----
void sendMessage() {
! TestNetworkMsg* msg = (TestNetworkMsg*)call Send.getPayload(&packet, sizeof(TestNetworkMsg));
uint16_t metric;
am_addr_t parent;
***************
*** 163,167 ****
message_t* msg = call Queue.dequeue();
dbg("Traffic", "Sending packet to UART.\n");
! if (call UARTSend.send(0xffff, msg, call Receive.payloadLength(msg)) == SUCCESS) {
uartbusy = TRUE;
}
--- 163,167 ----
message_t* msg = call Queue.dequeue();
dbg("Traffic", "Sending packet to UART.\n");
! if (call UARTSend.send(0xffff, msg, call Packet.payloadLength(msg)) == SUCCESS) {
uartbusy = TRUE;
}
More information about the Tinyos-2-commits
mailing list