X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFET.py;fp=client%2FGoodFET.py;h=178ebd61d7addb450c323070b4b62ed10945f958;hp=11ca61646a36d30f84f93e585a8c176a92d87cc9;hb=841c56c387a8b3188fbeacf3e6340cf5346984a9;hpb=4e6cacbd6483db0a73b6c5b88e8ee06f2dd67ba7 diff --git a/client/GoodFET.py b/client/GoodFET.py index 11ca616..178ebd6 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -198,6 +198,14 @@ class GoodFET: elif attempts==2 and os.environ.get("board")!='telosb': print "See the GoodFET FAQ about missing info flash."; self.serialport.setTimeout(0.2); + elif attempts == 100: + print "Tried 100 times to connect and failed." + sys.stdout.write("Continuing to try forever.") # No newline + sys.stdout.flush() + self.verbose=True # Something isn't going right, give the user more info + elif attempts > 100 and attempts % 10 == 0: + sys.stdout.write('.') + sys.stdout.flush() #self.serialport.flushInput() #self.serialport.flushOutput() @@ -240,6 +248,8 @@ class GoodFET: #Here we have a connection, but maybe not a good one. #print "We have a connection." connected=1; + if attempts >= 100: + print "" # Add a newline olds=self.infostring(); clocking=self.monitorclocking(); for foo in range(1,30):