Skip to content

Commit

Permalink
fw: input api update
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobaltieri committed Jul 31, 2024
1 parent 70e4da3 commit d6bf942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/src/button.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

0 comments on commit d6bf942

Please sign in to comment.