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:
Stefan Klug 2021-10-21 22:22:25 +02:00
parent a1fbda0c53
commit fb7b45ed21

View file

@ -100,10 +100,6 @@ elif args.caterina:
if args.verbose: print('Forcing reset using 1200bps open/close on port %s' % args.port[0])
ser = serial.Serial(args.port[0], 57600)
ser.close()
if pyserial_version < 3:
ser.setBaudrate (1200)
else:
ser.baudrate = 1200
ser.open()