Orchestra: fix building of the link-based rule after API changes
@@ -177,8 +177,8 @@ static void
new_time_source(const struct tsch_neighbor *old, const struct tsch_neighbor *new)
{
if(new != old) {
- const linkaddr_t *old_addr = old != NULL ? &old->addr : NULL;
- const linkaddr_t *new_addr = new != NULL ? &new->addr : NULL;
+ const linkaddr_t *old_addr = tsch_queue_get_nbr_address(old);
+ const linkaddr_t *new_addr = tsch_queue_get_nbr_address(new);
if(new_addr != NULL) {
linkaddr_copy(&orchestra_parent_linkaddr, new_addr);
} else {
