Skip to content

Commit

Permalink
imd: Remove bogus usage of 300kbps data rates in generated images
Browse files Browse the repository at this point in the history
In fact there is no way to concretely specify IMD image rpm.
  • Loading branch information
keirf committed Apr 28, 2024
1 parent bc66570 commit 46a7444
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/greaseweazle/image/imd.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,12 @@ def get_image(self) -> bytes:
if t.mode is ibm.Mode.FM:
if t.clock < 3.0e-6:
mode = IMDMode.FM_500kbps # High Rate
elif t.time_per_rev < 0.185:
mode = IMDMode.FM_300kbps # 360 RPM
else:
mode = IMDMode.FM_250kbps # 300 RPM
else:
assert t.mode is ibm.Mode.MFM
if t.clock < 1.5e-6:
mode = IMDMode.MFM_500kbps # High Rate
elif t.time_per_rev < 0.185:
mode = IMDMode.MFM_300kbps # 360 RPM
else:
mode = IMDMode.MFM_250kbps # 300 RPM
cyl, head, nsec, sec_n = c, h, 0, None
Expand Down

0 comments on commit 46a7444

Please sign in to comment.