diff --git a/edlclient/Library/Modules/oneplus.py b/edlclient/Library/Modules/oneplus.py index c87daa7..1054900 100755 --- a/edlclient/Library/Modules/oneplus.py +++ b/edlclient/Library/Modules/oneplus.py @@ -149,7 +149,7 @@ def __init__(self, fh, projid:str="18825", serial=123456, ATOBuild=0, Flash_Mode 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: