Skip to content

Commit

Permalink
Merge pull request #474 from AntoineMahe/fix_oemunlock
Browse files Browse the repository at this point in the history
fix attribut error in oemunlock
  • Loading branch information
bkerler authored Dec 21, 2023
2 parents 58342e0 + cce157c commit 0975cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edlclient/Library/Modules/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def oem_unlock(self, enable):
if res[0]:
lun = res[1]
rpartition = res[2]
if rpartition.sectors <= (0x8000//self.cfg.SECTOR_SIZE_IN_BYTES):
if rpartition.sectors <= (0x8000//self.fh.cfg.SECTOR_SIZE_IN_BYTES):
offsettopatch = 0x7FFF
sector, offset = self.fh.calc_offset(rpartition.sector, offsettopatch)
else:
Expand Down

0 comments on commit 0975cc8

Please sign in to comment.