Browse Source

Merge pull request #7163 from cgundogan/pr/trickle_fix

trickle: adjust old_interval to max / 2 in case of I > Imax
master
Sebastian Meiling 6 years ago committed by GitHub
parent
commit
863bda7bc8
  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