fix (workaround) drtioaux packets being corrupted
This commit is contained in:
parent
433a9cdaf1
commit
ad3aeb5109
@ -66,6 +66,13 @@ pub fn copy_work_buffer(src: *mut u16, dst: *mut u16, len: isize) {
|
||||
*dst.offset(i) = *src.offset(i);
|
||||
*dst.offset(i+1) = *src.offset(i+1);
|
||||
}
|
||||
// workaround for corrupted writes
|
||||
// check and re-write
|
||||
for i in 0..len {
|
||||
if *dst.offset(i) != *src.offset(i) {
|
||||
*dst.offset(i) = *src.offset(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user