Browse Source

usbtest: Skip last 2 optional parameters, since we use the defaults and they are not in older versions of pyserial

Luke Dashjr 12 years ago
parent
commit
5566fdb1f3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      usbtest.py

+ 2 - 1
usbtest.py

@@ -1,6 +1,7 @@
 #!/usr/bin/env python2.7
 # Copyright 2012 Xiangfu
 # Copyright 2012-2013 Andrew Smith
+# Copyright 2013 Luke Dashjr
 #
 # This program is free software; you can redistribute it and/or modify it under
 # the terms of the GNU General Public License as published by the Free Software
@@ -39,7 +40,7 @@ if len(sys.argv) < 2:
 	sys.exit("Aborting")
 
 # Open with a 10 second timeout - just to be sure
-ser = serial.Serial(sys.argv[1], 115200, serial.EIGHTBITS, serial.PARITY_NONE, serial.STOPBITS_ONE, 10, False, False, 5, False, None)
+ser = serial.Serial(sys.argv[1], 115200, serial.EIGHTBITS, serial.PARITY_NONE, serial.STOPBITS_ONE, 10, False, False, 5)
 
 if sys.argv[2] == "icarus":