From e3637d97ecaef1768d3f9ef40cb0204a0e668ff2 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Thu, 2 Jan 2014 15:28:52 -0500 Subject: Only mark handle as completed when fully received. --- src/isotp/isotp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/isotp/isotp.c') 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; } -- cgit 1.2.3-korg