summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/ccd_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c
index d87842a055..0189bef185 100644
--- a/common/ccd_config.c
+++ b/common/ccd_config.c
@@ -959,12 +959,14 @@ static enum vendor_cmd_rc ccd_open(struct vendor_cmd_params *p)
* bypass these checks.
*/
} else {
+#ifndef CONFIG_CCD_OPEN_PREPVT
/*
* - Battery is present
* - Either not in developer mode or the command came from USB
*/
why_denied = "open from AP in devmode or remove batt";
goto denied;
+#endif
}
/* Fail and abort if already checking physical presence */