aStart = sim_time();
if (aTime & 0xff) {
call A.stop();
- aTime = call Random.rand32() & 0x3ff;
+ aTime = 1 + (call Random.rand32() & 0x3ff);
call A.startPeriodic(aTime);
}
}
event void B.fired() {
check('B', bStart, bTime);
call B.stop();
- bTime = call Random.rand32() & 0x3ff;
+ bTime = 1 + (call Random.rand32() & 0x3ff);
call B.startPeriodic(bTime);
bStart = sim_time();
}
check('C', cStart, cTime);
if (cTime & 0xff) {
call C.stop();
- cTime = call Random.rand32() & 0x3ff;
+ cTime = 1 + (call Random.rand32() & 0x3ff);
}
call C.startOneShot(cTime);
cStart = sim_time();
event void D.fired() {
check('D', dStart, dTime);
- dTime = call Random.rand32() & 0x3ff;
+ dTime = 1 + (call Random.rand32() & 0x3ff);
call D.startOneShot(dTime);
dStart = sim_time();
}