RPL probing: make delay function user-configurable
This commit is contained in:
parent
2dd182f4a8
commit
6a5f238255
2 changed files with 11 additions and 3 deletions
|
@ -414,9 +414,7 @@ handle_probing_timer(void *ptr)
|
|||
void
|
||||
rpl_schedule_probing(rpl_instance_t *instance)
|
||||
{
|
||||
clock_time_t delay = (RPL_PROBING_INTERVAL / 2) +
|
||||
random_rand() % (RPL_PROBING_INTERVAL / 2);
|
||||
ctimer_set(&instance->probing_timer, delay,
|
||||
ctimer_set(&instance->probing_timer, RPL_PROBING_DELAY_FUNC(),
|
||||
handle_probing_timer, instance);
|
||||
}
|
||||
#endif /* RPL_WITH_PROBING */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue