1
0
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:
Cenk Gündoğan 2017-06-09 13:07:21 +02:00
parent 89716729c8
commit 933b3cb378

View File

@ -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);