Remove code that uses pyserial_version
Since the python3 migration pyserial_version is no longer available.
This was missing in commit 207253abc
.
This commit is contained in:
parent
a1fbda0c53
commit
fb7b45ed21
1 changed files with 1 additions and 5 deletions
|
@ -100,11 +100,7 @@ elif args.caterina:
|
||||||
if args.verbose: print('Forcing reset using 1200bps open/close on port %s' % args.port[0])
|
if args.verbose: print('Forcing reset using 1200bps open/close on port %s' % args.port[0])
|
||||||
ser = serial.Serial(args.port[0], 57600)
|
ser = serial.Serial(args.port[0], 57600)
|
||||||
ser.close()
|
ser.close()
|
||||||
|
ser.baudrate = 1200
|
||||||
if pyserial_version < 3:
|
|
||||||
ser.setBaudrate (1200)
|
|
||||||
else:
|
|
||||||
ser.baudrate = 1200
|
|
||||||
|
|
||||||
ser.open()
|
ser.open()
|
||||||
ser.setRTS(True) # RTS line needs to be held high and DTR low
|
ser.setRTS(True) # RTS line needs to be held high and DTR low
|
||||||
|
|
Loading…
Reference in a new issue