Fixing ACR write padding
This commit is contained in:
parent
c1f256ea77
commit
dd3f293cca
@ -582,7 +582,9 @@ impl ProfileSerializer {
|
||||
}
|
||||
|
||||
if let Some(acr) = acr {
|
||||
self.add_write(Register::ACR, &acr.to_be_bytes());
|
||||
let mut data = [0; 3];
|
||||
data[1..=2].copy_from_slice(&acr.to_be_bytes());
|
||||
self.add_write(Register::ACR, &data);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user