From: travisutk Date: Thu, 7 Jan 2010 12:51:20 +0000 (+0000) Subject: Explicity setDTR. Matt Carpenter says this should be neighborly. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=610bfc6b26a4c800e495d29b504df702b75b6a3b Explicity setDTR. Matt Carpenter says this should be neighborly. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@259 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFET.py b/client/GoodFET.py index cfc2079..70e383e 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -40,8 +40,12 @@ class GoodFET: parity = serial.PARITY_NONE ) - #Explicitly set RTS + #This might cause problems, but it makes failure graceful. + #self.serialport._timeout = 5; + + #Explicitly set RTS and DTR to halt board. self.serialport.setRTS(1); + self.serialport.setDTR(1); #Drop DTR, which is !RST, low to begin the app. self.serialport.setDTR(0); self.serialport.flushInput()