Skip to content

Commit

Permalink
imd: Fix import of 360rpm image with 26-sector MFM track 0.
Browse files Browse the repository at this point in the history
This is the case for IBM System/36.

Fixes #428
  • Loading branch information
keirf committed Apr 28, 2024
1 parent 154cb9d commit bc66570
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/greaseweazle/image/imd.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def from_bytes(self, dat: bytes) -> None:
fmt.rate = 250
elif mode == IMDMode.MFM_500kbps:
fmt = ibm.IBMTrack_FixedDef('ibm.mfm')
if nsec == 26: rpm = 360 # 8-inch disk
fmt.rate = 500
else:
raise error.Fatal('IMD: Unrecognised track mode %x' % mode)
Expand Down

0 comments on commit bc66570

Please sign in to comment.