From dea6bf631cff92a6682f8898ec17315de1a305de Mon Sep 17 00:00:00 2001 From: travisutk Date: Sun, 13 Feb 2011 00:22:31 +0000 Subject: [PATCH] Prints retry attempts for GoodFETs without info flash. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@920 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFET.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/GoodFET.py b/client/GoodFET.py index ef21833..e60c31a 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -115,7 +115,8 @@ class GoodFET: connected=0; while connected==0: while self.verb!=0x7F or self.data!="http://goodfet.sf.net/": - #print "Resyncing."; + if attempts>2: + print "Resyncing."; self.serialport.flushInput() self.serialport.flushOutput() #Explicitly set RTS and DTR to halt board. @@ -126,6 +127,7 @@ class GoodFET: #TelosB reset, prefer software to I2C SPST Switch. if(os.environ.get("platform")=='telosb'): + #print "TelosB Reset"; self.telosBReset(); #self.serialport.write(chr(0x80)); #self.serialport.write(chr(0x80)); -- 2.20.1