mirror of
https://github.com/bkerler/edl.git
synced 2024-11-14 19:14:58 -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)
|
data = self.fh.cmd_read_buffer(lun, rpartition.sector, 1, False)
|
||||||
value = data.data[24:24 + 5]
|
value = data.data[24:24 + 5]
|
||||||
try:
|
try:
|
||||||
test = int(value.decode('utf-8'))
|
test = int(value.decode('utf-8'), 16)
|
||||||
self.info("Oneplus protection with prjid %d detected" % test)
|
self.info("Oneplus protection with prjid %d detected" % test)
|
||||||
projid = value.decode('utf-8')
|
projid = value.decode('utf-8')
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue