aboutsummaryrefslogtreecommitdiffstats
path: root/src/uds/uds.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-02-14 18:06:40 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-02-14 18:07:29 -0500
commit2e37a1f1000d2ce827a028206e6b42b10536e7b3 (patch)
tree10e469b80e88ec51ea999eb115c3cf11eab48ae1 /src/uds/uds.c
parent85c06482daca518981b2b0c1d5661b10a8d5c379 (diff)
Add an option to pad outgoing CAN frames to 8 bytes (on by default).
Fixed #3.
Diffstat (limited to 'src/uds/uds.c')
-rw-r--r--src/uds/uds.c3
1 files changed, 2 insertions, 1 deletions
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