File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -546,15 +546,17 @@ bool transportRouteMessage(MyMessage &message)
546
546
#endif
547
547
}
548
548
#else
549
- if (destination > GATEWAY_ADDRESS && destination < BROADCAST_ADDRESS) {
550
- // node2node traffic: assume node is in vincinity. If transmission fails, hand over to parent
549
+ // not a repeater, all traffic routed via parent or N2N
550
+ route = _transportConfig.parentNodeId ;
551
+ // Try node2node traffic if destination is not parent and is not a broadcast
552
+ if (destination != route && destination != BROADCAST_ADDRESS) {
553
+ // N2N: assume node is in vicinity. If transmission fails, hand over to parent
551
554
if (transportSendWrite (destination, message)) {
552
555
TRANSPORT_DEBUG (PSTR (" TSF:RTE:N2N OK\n " ));
553
556
return true ;
554
557
}
555
558
TRANSPORT_DEBUG (PSTR (" !TSF:RTE:N2N FAIL\n " ));
556
559
}
557
- route = _transportConfig.parentNodeId ; // not a repeater, all traffic routed via parent
558
560
#endif
559
561
}
560
562
// send message
You can’t perform that action at this time.
0 commit comments