Fix scsi send_packet to parse words a little endian
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
parent
5368c5a4a2
commit
6984ca0592
@ -190,7 +190,7 @@ impl ATABus {
|
|||||||
self.wait_packet_request();
|
self.wait_packet_request();
|
||||||
|
|
||||||
for i in (0..raw_packet.len()).step_by(2) {
|
for i in (0..raw_packet.len()).step_by(2) {
|
||||||
let word = u16::from_be_bytes(raw_packet[i..i+2].try_into().unwrap());
|
let word = u16::from_le_bytes(raw_packet[i..i+2].try_into().unwrap());
|
||||||
unsafe {
|
unsafe {
|
||||||
self.data.write(word);
|
self.data.write(word);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user