summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2018-04-03 18:13:08 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-04-03 18:13:08 +0100
commitf99a3974a624a8a98abf11cd5548c7462616e641 (patch)
treeb68b9962c445f802ecccb111c3963fd2e6446a81
parent62718172ed94f92e11d8450267890b89091fd898 (diff)
downloadcanopied-f99a3974a624a8a98abf11cd5548c7462616e641.tar.bz2
Actually pass all the data through properly
-rw-r--r--src/isotp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/isotp.rs b/src/isotp.rs
index f2c1a55..f9a6274 100644
--- a/src/isotp.rs
+++ b/src/isotp.rs
@@ -43,7 +43,7 @@ impl IncomingPacket {
}
let provided = min(7, self.remaining_bytes);
for v in 1..(provided + 1) {
- self.content.push(data[provided as usize]);
+ self.content.push(data[v as usize]);
}
self.remaining_bytes -= provided;
if self.block_size != 0 {