From 2e37a1f1000d2ce827a028206e6b42b10536e7b3 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Fri, 14 Feb 2014 18:06:40 -0500 Subject: Add an option to pad outgoing CAN frames to 8 bytes (on by default). Fixed #3. --- src/uds/uds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/uds/uds.c') diff --git a/src/uds/uds.c b/src/uds/uds.c index f38c6aac..9fec9a88 100644 --- a/src/uds/uds.c +++ b/src/uds/uds.c @@ -87,6 +87,7 @@ DiagnosticRequestHandle diagnostic_request(DiagnosticShims* shims, handle.isotp_shims = isotp_init_shims(shims->log, shims->send_can_message, shims->set_timer); + handle.isotp_shims.frame_padding = !request->no_frame_padding; handle.isotp_send_handle = isotp_send(&handle.isotp_shims, request->arbitration_id, payload, @@ -121,7 +122,7 @@ DiagnosticRequestHandle diagnostic_request(DiagnosticShims* shims, // that are just called continuously from the main loop. it's a waste of a // few cpu cycles but it may be more natural than callbacks. // - // what woudl a timer callback look like...it would need to pass the handle + // what would a timer callback look like...it would need to pass the handle // and that's all. seems like a context void* would be able to capture all // of the information but arg, memory allocation. look at how it's done in // the other library again -- cgit 1.2.3-korg