mirror of
https://github.com/mashed-potatoes/PotatoNV.git
synced 2024-09-19 20:51:20 +02:00
Fix FBLOCK state detection on legacy devices (#63)
This commit is contained in:
parent
79552c2097
commit
0de7403640
1 changed files with 7 additions and 1 deletions
|
@ -85,7 +85,13 @@ namespace PotatoNV_next
|
|||
|
||||
var fblock = fb.Command("oem lock-state info");
|
||||
var state = Regex.IsMatch(fblock.Payload, @"FB[\w: ]{1,}UNLOCKED");
|
||||
|
||||
|
||||
if (!state)
|
||||
{
|
||||
fblock = fb.Command("oem backdoor info");
|
||||
state = Regex.IsMatch(fblock.Payload, @"FB[\w: ]{1,}UNLOCKED");
|
||||
}
|
||||
|
||||
Log.Info($"FBLOCK state: {(state ? "unlocked" : "locked")}");
|
||||
LogResponse(fblock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue