Merge pull request #9 from jannic-dev-forks/fix-total-len-slice
Fix calculation of slice index
This commit is contained in:
commit
2bd7205c79
@ -762,7 +762,7 @@ where
|
||||
let bus = unsafe { &mut *bus };
|
||||
async {
|
||||
bus.write(&[cmd]).await?;
|
||||
bus.write(&buf[..(total_len + 3 / 4)]).await?;
|
||||
bus.write(&buf[..(total_len / 4)]).await?;
|
||||
Ok(())
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user