greatly increase drive selection delay because I don't know it doesn't work sometimes otherwise
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:
Julien CLEMENT 2022-12-12 11:13:24 +01:00
parent 6984ca0592
commit e12eb4bed9

@ -209,12 +209,14 @@ impl ATABus {
fn select_delay(&mut self) { fn select_delay(&mut self) {
unsafe { unsafe {
for _ in 0..100 {
self.dcr.read(); self.dcr.read();
self.dcr.read(); self.dcr.read();
self.dcr.read(); self.dcr.read();
self.dcr.read(); self.dcr.read();
} }
} }
}
fn wait_packet_request(&mut self) { fn wait_packet_request(&mut self) {
let mut status = ATA_BSY; let mut status = ATA_BSY;