diff options
author | Dan Hasting | 2016-08-15 22:24:43 -0400 |
---|---|---|
committer | Dan Hasting | 2016-08-15 22:24:43 -0400 |
commit | 5d2630dad76b84f3e96916e145606fcf99a55f30 (patch) | |
tree | 56db18b73345ff2391b4888c243dfb5af949bc56 /fix-configure-dialog.patch | |
parent | 73502780942fdd8f8f48ae67c4c734f33cee8304 (diff) | |
download | aur-5d2630dad76b84f3e96916e145606fcf99a55f30.tar.gz |
Add fix-configure-dialog.patch
Diffstat (limited to 'fix-configure-dialog.patch')
-rw-r--r-- | fix-configure-dialog.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fix-configure-dialog.patch b/fix-configure-dialog.patch new file mode 100644 index 000000000000..b2ce260ded4f --- /dev/null +++ b/fix-configure-dialog.patch @@ -0,0 +1,18 @@ +*** pyobd-0.9.3/pyobd.orig 2016-08-15 22:12:28.654786498 -0400 +--- pyobd-0.9.3/pyobd 2016-08-15 22:12:36.304877524 -0400 +*************** +*** 593,605 **** + """scan for available ports. return a list of serial names""" + available = [] + for i in range(256): +- try: #scan standart ttyS* +- s = serial.Serial(i) +- available.append(s.portstr) +- s.close() # explicit close 'cause of delayed GC in java +- except serial.SerialException: +- pass +- for i in range(256): + try: #scan USB ttyACM + s = serial.Serial("/dev/ttyACM"+str(i)) + available.append(s.portstr) +--- 593,598 ---- |