summaryrefslogtreecommitdiffstats
path: root/src/isotp/isotp.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-02 15:28:52 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-02 15:28:52 -0500
commite3637d97ecaef1768d3f9ef40cb0204a0e668ff2 (patch)
treea1f2db1c34cfde48fe8533877015556ba7309c30 /src/isotp/isotp.c
parentfe20a273bb3979d9e806d828486633249d073ede (diff)
Only mark handle as completed when fully received.
Diffstat (limited to 'src/isotp/isotp.c')
-rw-r--r--src/isotp/isotp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/isotp/isotp.c b/src/isotp/isotp.c
index 9aa051bc..1605d435 100644
--- a/src/isotp/isotp.c
+++ b/src/isotp/isotp.c
@@ -76,6 +76,8 @@ IsoTpMessage isotp_receive_can_frame(IsoTpShims* shims, IsoTpHandle* handle,
message.payload = payload;
message.size = payload_length;
message.completed = true;
+ handle->success = true;
+ handle->completed = true;
isotp_handle_single_frame(handle, &message);
break;
}