summaryrefslogtreecommitdiff
path: root/chip/ish/host_command_heci.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/ish/host_command_heci.c')
-rw-r--r--chip/ish/host_command_heci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/ish/host_command_heci.c b/chip/ish/host_command_heci.c
index ede615804c..3981ea5c53 100644
--- a/chip/ish/host_command_heci.c
+++ b/chip/ish/host_command_heci.c
@@ -119,7 +119,8 @@ static void cros_ec_ishtp_subsys_new_msg_received(const heci_handle_t handle,
heci_packet.response_size = 0;
heci_packet.driver_result = EC_RES_SUCCESS;
- host_packet_receive(&heci_packet);
+ if (IS_ENABLED(HAS_TASK_HOSTCMD))
+ host_packet_receive(&heci_packet);
}
/*