Commit d26e5fb4 authored by Simon Duquennoy's avatar Simon Duquennoy
Browse files

TSCH: automatically leave the network when setting as coordinator/node

parent 9cb34c85
......@@ -185,6 +185,9 @@ static void packet_input(void);
void
tsch_set_coordinator(int enable)
{
if(tsch_is_coordinator != enable) {
tsch_is_associated = 0;
}
tsch_is_coordinator = enable;
tsch_set_eb_period(TSCH_EB_PERIOD);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment