From d6bf94240bce1b1e7ff7a60e0dfbede69971e59f Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Thu, 1 Aug 2024 00:42:08 +0100 Subject: [PATCH] fw: input api update --- firmware/src/button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/src/button.c b/firmware/src/button.c index ae7182c..00d0035 100644 --- a/firmware/src/button.c +++ b/firmware/src/button.c @@ -8,7 +8,7 @@ LOG_MODULE_REGISTER(button, LOG_LEVEL_INF); static const struct device *const input_dev = DEVICE_DT_GET(DT_NODELABEL(longpress)); -static void input_cb(struct input_event *evt) +static void input_cb(struct input_event *evt, void *user_data) { if (evt->type != INPUT_EV_KEY) { return; @@ -29,4 +29,4 @@ static void input_cb(struct input_event *evt) LOG_INF("unknown code: %d", evt->code); } } -INPUT_CALLBACK_DEFINE(input_dev, input_cb); +INPUT_CALLBACK_DEFINE(input_dev, input_cb, NULL);