From 165be2e37f8ea460b4654cc0e16e6d8a51da22f4 Mon Sep 17 00:00:00 2001 From: travisutk Date: Tue, 25 Sep 2012 08:58:45 +0000 Subject: [PATCH 1/1] An indention bug was preventing the self clocking from working. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1275 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFET.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/GoodFET.py b/client/GoodFET.py index 3d2d91b..1ee0ed9 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -247,8 +247,8 @@ class GoodFET: if self.verbose: print "Comm error on %i try, resyncing out of %s." % (foo, clocking); - connected=0; - break; + connected=0; + break; if self.verbose: print "Connected after %02i attempts." % attempts; self.mon_connected(); self.serialport.setTimeout(12); @@ -671,7 +671,8 @@ class GoodFET: data="The quick brown fox jumped over the lazy dog."; self.writecmd(self.MONITORAPP,0x81,len(data),data); if self.data!=data: - print "Comm error recognized by monitorecho(), got:\n%s" % self.data; + if self.verbose: + print "Comm error recognized by monitorecho(), got:\n%s" % self.data; return 0; return 1; -- 2.20.1