Fix PathConfig in cmd_payload

This commit is contained in:
Bjoern Kerler 2024-06-26 18:02:28 +02:00 committed by GitHub
parent 36eec49045
commit 0d04780932
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -678,9 +678,9 @@ class Main(metaclass=LogBase):
plt = PLTools(mtk, self.__logger.level)
if payloadfile is None:
if mtk.config.chipconfig.loader is None:
payloadfile = os.path.join(mtk.PathConfig.get_payloads_path(), "generic_patcher_payload.bin")
payloadfile = os.path.join(mtk.pathconfig.get_payloads_path(), "generic_patcher_payload.bin")
else:
payloadfile = os.path.join(mtk.PathConfig.get_payloads_path(), mtk.config.chipconfig.loader)
payloadfile = os.path.join(mtk.pathconfig.get_payloads_path(), mtk.config.chipconfig.loader)
plt.runpayload(filename=payloadfile)
if self.args.metamode:
mtk.port.run_handshake()