Skip to content

Commit 40cad6a

Browse files
committed
print warning when receiving messages addressed to unexistent nodes
1 parent 1d7693b commit 40cad6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

message_handler.go

+2
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ func (mh *messageHandler) onEventFrame(evt *gomavlib.EventFrame) {
158158
mh.node.WriteFrameTo(key.channel, evt.Frame) //nolint:errcheck
159159
return
160160
}
161+
} else {
162+
log.Printf("Warning: received message addressed to unexistent node with systemID=%d and componentID=%d", systemID, componentID)
161163
}
162164
}
163165

0 commit comments

Comments
 (0)