]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/AntiTheft/Root/AntiTheftRootC.nc
Updated AntiTheft app to manually start dissemination. Not tested, but should compile.
[tinyos-2.x.git] / apps / AntiTheft / Root / AntiTheftRootC.nc
index c86b240395221cf558e2686ee5b9d1ec08f3f198..7a9a2630a5f1943de48676fb9dd22847e2bb3cbc 100644 (file)
@@ -29,6 +29,7 @@ module AntiTheftRootC
     interface Receive as SettingsReceive;
 
     interface StdControl as CollectionControl;
+    interface StdControl as DisseminationControl;
     interface RootControl;
     interface Receive as AlertsReceive;
     interface AMSend as AlertsForward;
@@ -55,6 +56,7 @@ implementation
     if (error == SUCCESS)
       {
        call LowPowerListening.setLocalDutyCycle(200);
+       call DisseminationControl.start();
        call CollectionControl.start();
        call RootControl.setRoot();
       }