From: andreaskoepke Date: Tue, 27 Nov 2007 13:44:09 +0000 (+0000) Subject: startPeriodic does not always work X-Git-Tag: release_tinyos_2_1_0_0~656 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=97b1a139504e2ea320b3fedbb79304d58f1e0b0d startPeriodic does not always work --- diff --git a/tos/chips/tda5250/mac/DuplicateP.nc b/tos/chips/tda5250/mac/DuplicateP.nc index e5df6508..f1e8598e 100644 --- a/tos/chips/tda5250/mac/DuplicateP.nc +++ b/tos/chips/tda5250/mac/DuplicateP.nc @@ -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; } }