Skip to content

Commit

Permalink
Fix minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Jun 14, 2024
1 parent f00bdbf commit 0c709d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mtkclient/Library/DA/xml/extension/v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class XmlFlashExt(metaclass=LogBase):
def __init__(self, _mtk, _xmlflash, loglevel):
self.pathconfig = PathConfig()
self.__logger, self.info, self.debug, self.warning, self.error = logsetup(self, self.__logger,
loglevel, mtk.config.gui)
loglevel, _mtk.config.gui)
self.mtk = _mtk
self.loglevel = loglevel
self.__logger = self.__logger
Expand Down Expand Up @@ -103,7 +103,7 @@ def patch_command(self, _da2):
newcmd = b"CMD:CUSTOM\x00"
data[idx + 1:idx + 1 + len(newcmd)] = newcmd
return data
return da2
return _da2

def ack(self):
xmlcmd = self.xflash.Cmd.create_cmd("CUSTOMACK")
Expand Down

0 comments on commit 0c709d3

Please sign in to comment.