fix (workaround) drtioaux packets being corrupted

This commit is contained in:
mwojcik 2022-03-23 10:41:06 +08:00
parent 433a9cdaf1
commit ad3aeb5109
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}
}
}
}