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();
|
||||
|
||||
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 {
|
||||
self.data.write(word);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user