X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftests%2FTestNetwork%2FTestNetworkC.nc;h=cc05e47bd100fcacede570191cc630b029f8e6a8;hb=da0cfeda9689aa64cfce0aa209f51803dcb11c21;hp=9785967b87e802168e3864a79db396636092fd15;hpb=594acbf436f5f78611348f7763a89c84f38ba46a;p=tinyos-2.x.git diff --git a/apps/tests/TestNetwork/TestNetworkC.nc b/apps/tests/TestNetwork/TestNetworkC.nc index 9785967b..cc05e47b 100644 --- a/apps/tests/TestNetwork/TestNetworkC.nc +++ b/apps/tests/TestNetwork/TestNetworkC.nc @@ -84,7 +84,7 @@ implementation { void sendMessage() { - TestNetworkMsg* msg = (TestNetworkMsg*)call Send.getPayload(&packet); + TestNetworkMsg* msg = (TestNetworkMsg*)call Send.getPayload(&packet, sizeof(TestNetworkMsg)); uint16_t metric; am_addr_t parent; @@ -162,7 +162,7 @@ implementation { else if (!uartbusy) { message_t* msg = call Queue.dequeue(); dbg("Traffic", "Sending packet to UART.\n"); - if (call UARTSend.send(0xffff, msg, call Receive.payloadLength(msg)) == SUCCESS) { + if (call UARTSend.send(0xffff, msg, call Packet.payloadLength(msg)) == SUCCESS) { uartbusy = TRUE; } else {