Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set correct default timeout value

  • Loading branch information...
commit d04ce88e1c4d9d86652eee708af690c644941937 1 parent a05871c
Steve Conklin authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  experimental/FDif.py
3  experimental/FDif.py
View
@@ -46,8 +46,7 @@ def __init__(self):
def __del__(self):
return
- def open(self, cport='/dev/ttyUSB0', rate = 9600, par = 'N', stpbts=1, tmout=1, xx=0):
- #self.ser = serial.Serial(port = cport, baudrate = rate, parity = par, stopbits = stpbts, timeout = tmout, xonxoff=0)
+ def open(self, cport='/dev/ttyUSB0', rate = 9600, par = 'N', stpbts=1, tmout=None, xx=0):
self.ser = serial.Serial(port = cport, baudrate = rate, parity = par, stopbits = stpbts, timeout = tmout, xonxoff=0, rtscts=1, dsrdtr=0)
if self.ser == None:
print 'Unable to open serial device %s' % cport
Please sign in to comment.
Something went wrong with that request. Please try again.