Browse Source

trickle: adjust old_interval to max / 2 in case of I > Imax

master
Cenk Gündoğan 6 years ago
parent
commit
933b3cb378
  1. 1
      sys/trickle/trickle.c

1
sys/trickle/trickle.c

@ -41,6 +41,7 @@ void trickle_interval(trickle_t *trickle)
if ((trickle->I == 0) || (trickle->I > max_interval)) {
trickle->I = max_interval;
old_interval = max_interval / 2;
}
DEBUG("trickle: I == %" PRIu32 ", diff == %" PRIu32 "\n", trickle->I, diff);

Loading…
Cancel
Save