From 610bfc6b26a4c800e495d29b504df702b75b6a3b Mon Sep 17 00:00:00 2001 From: travisutk Date: Thu, 7 Jan 2010 12:51:20 +0000 Subject: [PATCH] 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 --- client/GoodFET.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- 2.20.1