Browse Source

Add option to seek with drive motor on

Some drives won't seek when the 'motor on' signal is not asserted.
Christian Zietz 3 years ago
parent
commit
d7bc230d5e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      scripts/greaseweazle/tools/seek.py

+ 3 - 1
scripts/greaseweazle/tools/seek.py

@@ -31,6 +31,8 @@ def main(argv):
                         help="drive to read (A,B,0,1,2)")
     parser.add_argument("--force", action="store_true",
                         help="allow extreme cylinders with no prompt")
+    parser.add_argument("--motor-on", action="store_true",
+                        help="seek with drive motor activated")
     parser.add_argument("cylinder", type=int, help="cylinder to seek")
     parser.description = description
     parser.prog += ' ' + argv[1]
@@ -47,7 +49,7 @@ def main(argv):
     
     try:
         usb = util.usb_open(args.device)
-        util.with_drive_selected(seek, usb, args, motor=False)
+        util.with_drive_selected(seek, usb, args, motor=args.motor_on)
     except USB.CmdError as err:
         print("Command Failed: %s" % err)