From 46a7444e40078ee2bc8d81c69f3acb97e5f30c23 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sun, 28 Apr 2024 16:48:35 +0100 Subject: [PATCH] imd: Remove bogus usage of 300kbps data rates in generated images In fact there is no way to concretely specify IMD image rpm. --- src/greaseweazle/image/imd.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/greaseweazle/image/imd.py b/src/greaseweazle/image/imd.py index 35b652bc..be4af71d 100644 --- a/src/greaseweazle/image/imd.py +++ b/src/greaseweazle/image/imd.py @@ -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