re-order the checking sequence.
@@ -356,13 +356,15 @@ owerror_t sixtop_send(OpenQueueEntry_t *msg) {
if (
idmanager_getIsDAGroot() == FALSE &&
+ (
+ msg->creator != COMPONENT_SIXTOP_RES &&
+ msg->creator != COMPONENT_CJOIN &&
(
icmpv6rpl_getPreferredParentEui64(&addressToWrite) == FALSE ||
(
icmpv6rpl_getPreferredParentEui64(&addressToWrite) &&
- schedule_hasDedicatedCellToNeighbor(&addressToWrite)== FALSE &&
- msg->creator != COMPONENT_SIXTOP_RES &&
- msg->creator != COMPONENT_CJOIN
+ schedule_hasDedicatedCellToNeighbor(&addressToWrite)== FALSE
+ )
)
)
){
