summarylogtreecommitdiffstats
path: root/fix-configure-dialog.patch
diff options
context:
space:
mode:
authorDan Hasting2016-08-15 22:24:43 -0400
committerDan Hasting2016-08-15 22:24:43 -0400
commit5d2630dad76b84f3e96916e145606fcf99a55f30 (patch)
tree56db18b73345ff2391b4888c243dfb5af949bc56 /fix-configure-dialog.patch
parent73502780942fdd8f8f48ae67c4c734f33cee8304 (diff)
downloadaur-5d2630dad76b84f3e96916e145606fcf99a55f30.tar.gz
Add fix-configure-dialog.patch
Diffstat (limited to 'fix-configure-dialog.patch')
-rw-r--r--fix-configure-dialog.patch18
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 ----