decreased blocking time for serial rx

Fri, 09 Dec 2011 12:32:36 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Fri, 09 Dec 2011 12:32:36 +0100
changeset 57
c2e2695c92fe
parent 56
a20f59a3016c
child 58
042c490fdfaa
child 59
361bc4602cf7

decreased blocking time for serial rx

slotUI/freeslot.py file | annotate | diff | comparison | revisions
--- a/slotUI/freeslot.py	Fri Dec 09 12:28:47 2011 +0100
+++ b/slotUI/freeslot.py	Fri Dec 09 12:32:36 2011 +0100
@@ -27,7 +27,8 @@
         if self.connected:
             return True
         try:
-            self.com = serial.Serial(self.device, baudrate=self.speed, xonxoff=0, timeout=1)
+            self.com = serial.Serial(self.device, baudrate=self.speed, 
+                xonxoff=0, timeout=0.1)
         except serial.SerialException, err:
             print err
             sys.exit(1)

mercurial