Skip to content

Commit

Permalink
Fix stock parameter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Sep 19, 2024
1 parent 4a827df commit 8d36ea4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mtkclient/Library/mtk_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, args, config):
config.pid = getint(args.pid)
except AttributeError:
pass
config.stock = True
config.stock = False
try:
if args.stock is not None:
config.stock = args.stock
Expand Down Expand Up @@ -682,8 +682,8 @@ def run(self, parser):
mtk = da_handler.configure_da(mtk, preloader)
if mtk is not None:
da_handler.handle_da_cmds(mtk, cmd, self.args)
else:
self.close()
mtk.port.close()
self.close()

def cmd_log(self, mtk, filename):
if mtk.preloader.init():
Expand Down

0 comments on commit 8d36ea4

Please sign in to comment.