Skip to content

Commit

Permalink
Small bug fix regarding pubk
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Aug 29, 2023
1 parent 4549fdc commit f5535fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mtkclient/Library/legacy_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ def generate_keys(self):
socid = self.config.get_socid()
hwcode = self.config.get_hwcode()
pubk=self.read_pubk()
retval["pubkey"]=pubk.hex()
if pubk is not None:
retval["pubkey"]=pubk.hex()
self.info("PUBK : " + pubk.hex())
self.config.hwparam.writesetting("pubkey", pubk.hex())
if meid is not None:
Expand Down
3 changes: 2 additions & 1 deletion mtkclient/Library/xflash_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,8 @@ def generate_keys(self):
# encrypt=False)
#self.info(data.hex())
pubk=self.read_pubk()
retval["pubkey"]=pubk.hex()
if pubk is not None:
retval["pubkey"]=pubk.hex()
self.info("PUBK : " + pubk.hex())
self.config.hwparam.writesetting("pubkey", pubk.hex())
if meid is not None:
Expand Down

0 comments on commit f5535fb

Please sign in to comment.