Skip to content

Commit 6ba4acf

Browse files
committed
Fix update routing table when node is reachable only via parent
1 parent 970527d commit 6ba4acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/MyTransport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ void transportProcessMessage(void)
684684
// update routing table if msg not from parent
685685
#if defined(MY_REPEATER_FEATURE)
686686
#if !defined(MY_GATEWAY_FEATURE)
687-
if (last != _transportConfig.parentNodeId) {
687+
if (last != GATEWAY_ADDRESS || sender != GATEWAY_ADDRESS) {
688688
#else
689689
// GW doesn't have parent
690690
{

0 commit comments

Comments
 (0)