Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destination node ID checking #16

Merged
merged 2 commits into from
Mar 15, 2016
Merged

Conversation

AkilKhan
Copy link

No description provided.

@@ -193,6 +193,11 @@ void canardHandleRxFrame(CanardInstance* ins, const CanardCANFrame* frame, uint6
uint16_t data_type_id = canardDataType(frame->id);
uint32_t transfer_descriptor = CANARD_MAKE_TRANSFER_DESCRIPTOR(data_type_id, transfer_type, source_node_id,
destination_node_id);

if(transfer_type != CanardTransferTypeBroadcast && destination_node_id != CanardGetLocalNodeID(ins))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you didn't test it, because this code is not supposed to compile - there is no function named CanardGetLocalNodeID(). Could you fix & test it? Thanks.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woops. Silly me. There you go.

pavel-kirienko added a commit that referenced this pull request Mar 15, 2016
Destination node ID checking
@pavel-kirienko pavel-kirienko merged commit 34195e7 into OpenCyphal:master Mar 15, 2016
@pavel-kirienko
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants