From 2ebde5ad3e4a5a1ef846b5b75bf715f5a4d8afcc Mon Sep 17 00:00:00 2001 From: scipio Date: Fri, 14 Sep 2007 18:48:51 +0000 Subject: [PATCH] Fixed wiring bug. --- apps/tests/TestNetwork/TestNetworkAppC.nc | 3 ++- apps/tests/TestNetwork/TestNetworkC.nc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/tests/TestNetwork/TestNetworkAppC.nc b/apps/tests/TestNetwork/TestNetworkAppC.nc index a95dab01..b64adf2d 100644 --- a/apps/tests/TestNetwork/TestNetworkAppC.nc +++ b/apps/tests/TestNetwork/TestNetworkAppC.nc @@ -51,7 +51,8 @@ implementation { TestNetworkC.Random -> RandomC; TestNetworkC.Pool -> PoolC; TestNetworkC.Queue -> QueueC; - + TestNetworkC.RadioPacket -> ActiveMessageC; + #ifndef NO_DEBUG components new PoolC(message_t, 10) as DebugMessagePool; components new QueueC(message_t*, 10) as DebugSendQueue; diff --git a/apps/tests/TestNetwork/TestNetworkC.nc b/apps/tests/TestNetwork/TestNetworkC.nc index cc05e47b..fe3d41fc 100644 --- a/apps/tests/TestNetwork/TestNetworkC.nc +++ b/apps/tests/TestNetwork/TestNetworkC.nc @@ -36,6 +36,7 @@ module TestNetworkC { uses interface Pool; uses interface CollectionDebug; uses interface AMPacket; + uses interface Packet as RadioPacket; } implementation { task void uartEchoTask(); @@ -162,7 +163,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 Packet.payloadLength(msg)) == SUCCESS) { + if (call UARTSend.send(0xffff, msg, call RadioPacket.payloadLength(msg)) == SUCCESS) { uartbusy = TRUE; } else { -- 2.39.2