From fb7b45ed219f3198430d3875f793bae7aff11439 Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Thu, 21 Oct 2021 22:22:25 +0200 Subject: [PATCH] Remove code that uses pyserial_version Since the python3 migration pyserial_version is no longer available. This was missing in commit 207253abc. --- bin/ard-reset-arduino | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/ard-reset-arduino b/bin/ard-reset-arduino index 69a442e..6925d67 100755 --- a/bin/ard-reset-arduino +++ b/bin/ard-reset-arduino @@ -100,11 +100,7 @@ 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.baudrate = 1200 ser.open() ser.setRTS(True) # RTS line needs to be held high and DTR low