diff --git a/mtkclient/Library/Port.py b/mtkclient/Library/Port.py index 7391e064..9bd74508 100755 --- a/mtkclient/Library/Port.py +++ b/mtkclient/Library/Port.py @@ -136,6 +136,7 @@ def handshake(self, maxtries=None, loop=0): try: if maxtries is not None and counter == maxtries: break + counter += 1 self.cdc.connect() ep_out = self.cdc.EP_OUT.write ep_in = self.cdc.EP_IN.read