summaryrefslogtreecommitdiff
path: root/common/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/message.c')
-rw-r--r--common/message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/message.c b/common/message.c
index 0040f479f4..76a451b55b 100644
--- a/common/message.c
+++ b/common/message.c
@@ -46,8 +46,10 @@ static int message_get_response(int cmd, uint8_t **buffp, int max_len)
case CMDC_ID:
*buffp = (char *)ec_id;
return sizeof(ec_id) - 1;
+#ifdef CONFIG_TASK_KEYSCAN
case CMDC_KEY_STATE:
return keyboard_get_scan(buffp, max_len);
+#endif
default:
return -1;
}