]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/tda5250/mac/DuplicateP.nc
startPeriodic does not always work
[tinyos-2.x.git] / 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;
     }
 }