Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorあく <alleteam@gmail.com>2021-02-26 13:40:54 +0300
committerGitHub <noreply@github.com>2021-02-26 13:40:54 +0300
commite39e1c3dced1e8f4331015dd67d91b711e1cb98c (patch)
tree484b30a3bfed0adefe10a823b36c3c66e8fb965f /applications/input
parent14c5307b982baa4ed23f5529e424b3453d4b4cac (diff)
Input: properly cast timer arg pointer to InputPinState (#354)
* Input: properly cast timer arg pointer to InputPinState * update codeowners
Diffstat (limited to 'applications/input')
-rw-r--r--applications/input/input.c4
1 files changed, 2 insertions, 2 deletions
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);
}