wd_fdc: adjust wp detection delay to better match real hardware (#10547)

This commit is contained in:
tim lindner 2022-11-14 03:09:51 -08:00 committed by GitHub
parent 4df2a01734
commit 1e3fb03451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -874,7 +874,7 @@ void wd_fdc_device_base::write_track_continue()
if (floppy && floppy->wpt_r()) {
LOGSTATE("WRITE_PROT\n");
sub_state = WRITE_PROTECT_WAIT;
delay_cycles(t_gen, 218);
delay_cycles(t_gen, 145);
return;
}
set_drq();
@ -996,7 +996,7 @@ void wd_fdc_device_base::write_sector_continue()
if (floppy && floppy->wpt_r()) {
LOGSTATE("WRITE_PROT\n");
sub_state = WRITE_PROTECT_WAIT;
delay_cycles(t_gen, 218);
delay_cycles(t_gen, 145);
return;
}
sub_state = SCAN_ID;