From: travisutk Date: Sun, 13 Feb 2011 00:22:31 +0000 (+0000) Subject: Prints retry attempts for GoodFETs without info flash. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=dea6bf631cff92a6682f8898ec17315de1a305de 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 --- 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));