Skip to content

Commit

Permalink
print warning when receiving messages addressed to unexistent nodes (#68
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aler9 committed Apr 26, 2024
1 parent d31c5aa commit aa4d575
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions message_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ func (mh *messageHandler) onEventFrame(evt *gomavlib.EventFrame) {
mh.node.WriteFrameTo(key.channel, evt.Frame) //nolint:errcheck
return
}
} else {
log.Printf(
"Warning: received message addressed to unexistent node with systemID=%d and componentID=%d",
systemID, componentID)
}
}

Expand Down

0 comments on commit aa4d575

Please sign in to comment.