From 35c5803ae0bb3916801abdc60a0c6272cd415ba7 Mon Sep 17 00:00:00 2001 From: hopez13 <140780838+hopez13@users.noreply.github.com> Date: Sun, 15 Sep 2024 01:52:34 +0530 Subject: [PATCH] Update Port.py --- mtkclient/Library/Port.py | 1 + 1 file changed, 1 insertion(+) 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