summaryrefslogtreecommitdiff
path: root/common/usb_pd_protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r--common/usb_pd_protocol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 07ce8189dc..11a1f62c9c 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -1590,7 +1590,9 @@ void pd_task(void)
#ifdef CONFIG_CASE_CLOSED_DEBUG
if (new_cc_state == PD_CC_DEBUG_ACC) {
- ccd_set_mode(CCD_MODE_ENABLED);
+ ccd_set_mode(system_is_locked() ?
+ CCD_MODE_PARTIAL :
+ CCD_MODE_ENABLED);
typec_set_input_current_limit(
port, 3000, TYPE_C_VOLTAGE);
charge_manager_update_dualrole(