Skip to content

Commit

Permalink
Better error message when Greaseweazle is out of sync with head position
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed Oct 3, 2024
1 parent 64c4661 commit e1636f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/greaseweazle/usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,11 @@ def seek(self, cyl, head) -> None:
pass
trk0 = not self.get_pin(26) # now re-sample /TRK0
error.check(cyl < 0 or (cyl == 0) == trk0,
"Track0 signal %s after seek to cylinder %d"
'''\
Track0 signal %s after seek to cylinder %d
1. Try "gw reset" to re-calibrate the drive-head position
2. If the error persists try slowing down seek operations
eg. "gw delays --step 20000" for 20ms per step'''
% (('absent', 'asserted')[trk0], cyl))
self._send_cmd(struct.pack("3B", Cmd.Head, 3, head))

Expand Down

0 comments on commit e1636f8

Please sign in to comment.