diff options
-rw-r--r-- | common/pd_log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/pd_log.c b/common/pd_log.c index f0e9312117..39a4edd207 100644 --- a/common/pd_log.c +++ b/common/pd_log.c @@ -102,7 +102,9 @@ static int hc_pd_write_log_entry(struct host_cmd_handler_args *args) switch (type) { /* Charge event: Log data for all ports */ case PD_EVENT_MCU_CHARGE: +#ifdef CONFIG_CHARGE_MANAGER charge_manager_save_log(port); +#endif break; /* Other events: no extra data, just log event type + port */ |