]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Fixed wiring bug.
authorscipio <scipio>
Fri, 14 Sep 2007 18:48:51 +0000 (18:48 +0000)
committerscipio <scipio>
Fri, 14 Sep 2007 18:48:51 +0000 (18:48 +0000)
apps/tests/TestNetwork/TestNetworkAppC.nc
apps/tests/TestNetwork/TestNetworkC.nc

index a95dab01600768f4da6d944b0d3306509d9e208b..b64adf2d82814a542922630a24a4b4a7a01aa18b 100644 (file)
@@ -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;
index cc05e47bd100fcacede570191cc630b029f8e6a8..fe3d41fc3cf7b5464fbabde00aacbe2de462356e 100644 (file)
@@ -36,6 +36,7 @@ module TestNetworkC {
   uses interface Pool<message_t>;
   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 {