Skip to content

Commit

Permalink
floppy: Do not probe number of cylinders in drive signal test
Browse files Browse the repository at this point in the history
The probe test:
1. It isn't a signal test
2. It bangs the head on a 48-tpi drive
3. It doesn't actually find the true cylinder range as it
   never steps beyond cylinder 79

Thus the probe is fairly pointless and best to simply remove it.
  • Loading branch information
keirf committed Dec 14, 2024
1 parent fa9abeb commit a4f694d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions testkit/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,8 @@ static unsigned int drive_signal_test(unsigned int drv, struct char_row *r)
drive_wait_ready();

seek_cyl0();
if (cur_cyl == 0) {
unsigned int nr_cyls;
seek_track(159);
nr_cyls = seek_cyl0() + 1;
if (cur_cyl == 0)
sprintf(s, "-- DF%u: %u cylinders --", drv, nr_cyls);
}
if (cur_cyl == 0)
sprintf(s, "-- DF%u: %u cylinders --", drv, drive_param.nr_cyls);
if (cur_cyl < 0)
sprintf(s, "-- DF%u: No Track 0 (Drive not present?) --", drv);
print_line(r);
Expand Down

0 comments on commit a4f694d

Please sign in to comment.