]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
startPeriodic does not always work
authorandreaskoepke <andreaskoepke>
Tue, 27 Nov 2007 13:44:09 +0000 (13:44 +0000)
committerandreaskoepke <andreaskoepke>
Tue, 27 Nov 2007 13:44:09 +0000 (13:44 +0000)
tos/chips/tda5250/mac/DuplicateP.nc

index e5df65084f862a9eb3c7333bcae6e4616b334a07..f1e8598ee991e5b3d5e127c28d9407ef2e6fdc0f 100644 (file)
@@ -124,6 +124,7 @@ implementation {
 
     /** helper interfaces */
     event void Timer.fired() {
+        call Timer.startOneShot(AGE_INTERVALL);
         post ageMsgsTask();
     }
 
@@ -134,7 +135,7 @@ implementation {
                 knownTable[i].age = MAX_AGE;
             }
         }
-        call Timer.startPeriodic(AGE_INTERVALL);
+        call Timer.startOneShot(AGE_INTERVALL);
         return SUCCESS;
     }
 }