Skip to content

Commit

Permalink
Local repair start and stop clear advertised_dodag_membership_since_l…
Browse files Browse the repository at this point in the history
…ast_repair when state is updated.
  • Loading branch information
Juha Heiskanen committed Feb 19, 2021
1 parent 0a01ab1 commit 2f427e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/RPL/rpl_upward.c
Original file line number Diff line number Diff line change
Expand Up @@ -1778,8 +1778,10 @@ void rpl_instance_set_local_repair(rpl_instance_t *instance, bool repair)
instance->repair_dis_count = 0;
} else {
instance->repair_dis_timer = 0;
instance->advertised_dodag_membership_since_last_repair = false;

}
//SET False allways for guarantee reboot possibility
instance->advertised_dodag_membership_since_last_repair = false;

/* When repair ends, eliminate all higher-rank neighbours (potential sub-DODAG) from table */
if (!repair && instance->current_dodag_version) {
Expand Down

0 comments on commit 2f427e1

Please sign in to comment.