Cleaned up code style, comments, and print outs. Set default DAG parameters when the DIO configuration option is missing.
This commit is contained in:
parent
6e41f6fbe9
commit
d0e2d9b47e
7 changed files with 102 additions and 107 deletions
|
@ -225,8 +225,8 @@ rpl_schedule_dao(rpl_instance_t *instance)
|
|||
if(!etimer_expired(&instance->dao_timer.etimer)) {
|
||||
PRINTF("RPL: DAO timer already scheduled\n");
|
||||
} else {
|
||||
expiration_time = DEFAULT_DAO_LATENCY / 2 +
|
||||
(random_rand() % (DEFAULT_DAO_LATENCY));
|
||||
expiration_time = RPL_DAO_LATENCY / 2 +
|
||||
(random_rand() % (RPL_DAO_LATENCY));
|
||||
PRINTF("RPL: Scheduling DAO timer %u ticks in the future\n",
|
||||
(unsigned)expiration_time);
|
||||
ctimer_set(&instance->dao_timer, expiration_time,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue