X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFET.py;h=1ee0ed9880f9a5f3b45c18f906cefea97bd9d0d4;hp=3d2d91b0eb5d0eaa7c3ed304f538e59f4e579c6d;hb=165be2e37f8ea460b4654cc0e16e6d8a51da22f4;hpb=539ba29d21bf675ace6866b5f78de145affa6982 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;