From 4a440ef01cae4637fc46a012acb713d98a286e57 Mon Sep 17 00:00:00 2001 From: Akil Khan Date: Wed, 16 Mar 2016 01:23:17 +0530 Subject: [PATCH] Destination node ID checking --- src/canard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canard.c b/src/canard.c index b04f4373..856ad457 100644 --- a/src/canard.c +++ b/src/canard.c @@ -194,7 +194,7 @@ void canardHandleRxFrame(CanardInstance* ins, const CanardCANFrame* frame, uint6 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)) + if(transfer_type != CanardTransferTypeBroadcast && destination_node_id != canardGetLocalNodeID(ins)) { return; }