Fri, 09 Dec 2011 12:32:36 +0100
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)