mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
trickle: adjust old_interval to max / 2 in case of I > Imax
This commit is contained in:
parent
89716729c8
commit
933b3cb378
@ -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…
Reference in New Issue
Block a user