aboutsummaryrefslogtreecommitdiffstats
path: root/src/isotp/send.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-02-14 17:58:22 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-02-14 17:58:22 -0500
commitc01a88ba1e56d455c7187a52a5e244500a0d6b0f (patch)
tree07ac638bdb393c71ba2209b55d18d912f4cb55e7 /src/isotp/send.c
parent43fd60983efaaf4a475ee6a0d09395611b4aa6f8 (diff)
Add an option to control CAN frame padding (on by default).
Fixed #1.
Diffstat (limited to 'src/isotp/send.c')
-rw-r--r--src/isotp/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/isotp/send.c b/src/isotp/send.c
index 798fab83..e849bb2c 100644
--- a/src/isotp/send.c
+++ b/src/isotp/send.c
@@ -37,7 +37,7 @@ IsoTpSendHandle isotp_send_single_frame(IsoTpShims* shims, IsoTpMessage* message
}
shims->send_can_message(message->arbitration_id, can_data,
- 1 + message->size);
+ shims->frame_padding ? 8 : 1 + message->size);
handle.success = true;
isotp_complete_send(shims, message, true, callback);
return handle;