summaryrefslogtreecommitdiffstats
path: root/src/isotp
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-03 13:21:18 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-03 13:21:18 -0500
commit99dd20fc3d6c14d9e8af65264ad712ca6718dcdd (patch)
treea3fa93c403961cb82e5e0f3cc50b8cc20f20ea29 /src/isotp
parent9c92fe46b5fa9a144190777b4f4811a898fb8cd7 (diff)
Test rx an empty CAN messages.
Diffstat (limited to 'src/isotp')
-rw-r--r--src/isotp/isotp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/isotp/isotp.c b/src/isotp/isotp.c
index 67a5df17..e233d386 100644
--- a/src/isotp/isotp.c
+++ b/src/isotp/isotp.c
@@ -56,6 +56,9 @@ IsoTpMessage isotp_receive_can_frame(IsoTpShims* shims, IsoTpHandle* handle,
return message;
}
} else if(handle->type == ISOTP_HANDLE_SENDING) {
+ // TODO this will need to be tested when we add multi-frame support,
+ // which is when it'll be necessary to pass in CAN messages to SENDING
+ // handles.
if(handle->send_handle.receiving_arbitration_id != arbitration_id) {
if(shims->log != NULL) {
shims->log("The arb ID 0x%x doesn't match the expected tx continuation ID 0x%x",