mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-07-02 15:08:14 +00:00
An unplugged cable is not 32-bit (#24)
* An unplugged cable is not 32-bit * Better practice * Forgot extra parentheses
This commit is contained in:
parent
aeb94dcdd2
commit
a1d8cfaf95
|
@ -119,12 +119,14 @@ futurerestore::futurerestore(bool isUpdateInstall, bool isPwnDfu, bool noIBSS) :
|
||||||
|
|
||||||
bool futurerestore::init(){
|
bool futurerestore::init(){
|
||||||
if (_didInit) return _didInit;
|
if (_didInit) return _didInit;
|
||||||
_didInit = (check_mode(_client) != MODE_UNKNOWN);
|
// If device is in an invalid state, don't check if it supports img4
|
||||||
|
if ((_didInit = check_mode(_client) != MODE_UNKNOWN)) {
|
||||||
if (!(_client->image4supported = is_image4_supported(_client))){
|
if (!(_client->image4supported = is_image4_supported(_client))){
|
||||||
info("[INFO] 32-bit device detected\n");
|
info("[INFO] 32-bit device detected\n");
|
||||||
}else{
|
}else{
|
||||||
info("[INFO] 64-bit device detected\n");
|
info("[INFO] 64-bit device detected\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return _didInit;
|
return _didInit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue