diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c index 21e216968e..b032ed3033 100644 --- a/host/arch/arm/lib/crossystem_arch.c +++ b/host/arch/arm/lib/crossystem_arch.c @@ -524,6 +524,11 @@ int VbGetArchPropertyInt(const char* name) { return VbGetVarGpio("developer-switch"); } else if (!strcasecmp(name, "recoverysw_cur")) { + int value; + value = VbGetPlatformGpioStatus("recovery"); + if (value != -1) + return value; + return VbGetVarGpio("recovery-switch"); } else if (!strcasecmp(name, "wpsw_cur")) { int value;