summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 {