From e39e1c3dced1e8f4331015dd67d91b711e1cb98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Fri, 26 Feb 2021 13:40:54 +0300 Subject: [PATCH] Input: properly cast timer arg pointer to InputPinState (#354) * Input: properly cast timer arg pointer to InputPinState * update codeowners --- .github/CODEOWNERS | 1 + applications/input/input.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bcb096b3..fdec20aa 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -70,6 +70,7 @@ applications/dolphin/** @skotopes # GUI Stuff applications/gui/** @skotopes +applications/input/** @skotopes # iButton diff --git a/applications/input/input.c b/applications/input/input.c index 975eb7a1..ca90ef7a 100644 --- a/applications/input/input.c +++ b/applications/input/input.c @@ -7,9 +7,9 @@ static Input* input = NULL; void input_press_timer_callback(void* arg) { - InputPin* input_pin = arg; + InputPinState* input_pin = arg; InputEvent event; - event.key = input_pin->key; + event.key = input_pin->pin->key; event.type = InputTypeLong; notify_pubsub(&input->event_pubsub, &event); }