]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/Deluge/ObjectTransferC.nc
Address the comments from Phil Levis about burn and burn-net. The availability for...
[tinyos-2.x.git] / tos / lib / net / Deluge / ObjectTransferC.nc
index bbf6c05d30169d4d99aea81c1dff94ca0143b632..b27fbcb78c86fa00b2abddb9b562167844e7e697 100644 (file)
@@ -33,6 +33,7 @@ configuration ObjectTransferC
   uses {
     interface BlockRead[uint8_t img_num];
     interface BlockWrite[uint8_t img_num];
+    interface Leds;
   }
 }
 
@@ -64,13 +65,11 @@ implementation
   DelugePageTransferC.SendDataMsg -> SendDataMsg;
   DelugePageTransferC.ReceiveDataMsg -> ReceiveDataMsg;
   DelugePageTransferC.AMPacket -> SendDataMsg;
+  DelugePageTransferC.Leds = Leds;
   
   ObjectTransferP.BlockWrite[VOLUME_DELUGE0] = BlockWrite[VOLUME_DELUGE0];
   ObjectTransferP.BlockWrite[VOLUME_DELUGE1] = BlockWrite[VOLUME_DELUGE1];
   
-  components MainC, LedsC, NoLedsC;
-  ObjectTransferP.Leds -> NoLedsC;
-  
   components RandomC, new TimerMilliC() as Timer;
   ObjectTransferP.Random -> RandomC;
   ObjectTransferP.Timer -> Timer;