mirror of
https://github.com/bkerler/edl.git
synced 2024-11-14 11:05:05 -05:00
Merge pull request #549 from mkropat/projid-detection
Support hex digits in OnePlus projid
This commit is contained in:
commit
3e4e569cf7
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class oneplus(metaclass=LogBase):
|
|||
data = self.fh.cmd_read_buffer(lun, rpartition.sector, 1, False)
|
||||
value = data.data[24:24 + 5]
|
||||
try:
|
||||
test = int(value.decode('utf-8'))
|
||||
test = int(value.decode('utf-8'), 16)
|
||||
self.info("Oneplus protection with prjid %d detected" % test)
|
||||
projid = value.decode('utf-8')
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue