Input: properly cast timer arg pointer to InputPinState (#354)

* Input: properly cast timer arg pointer to InputPinState
* update codeowners
This commit is contained in:
あく 2021-02-26 13:40:54 +03:00 committed by GitHub
parent 14c5307b98
commit e39e1c3dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
.github/CODEOWNERS vendored
View File

@ -70,6 +70,7 @@ applications/dolphin/** @skotopes
# GUI Stuff # GUI Stuff
applications/gui/** @skotopes applications/gui/** @skotopes
applications/input/** @skotopes
# iButton # iButton

View File

@ -7,9 +7,9 @@
static Input* input = NULL; static Input* input = NULL;
void input_press_timer_callback(void* arg) { void input_press_timer_callback(void* arg) {
InputPin* input_pin = arg; InputPinState* input_pin = arg;
InputEvent event; InputEvent event;
event.key = input_pin->key; event.key = input_pin->pin->key;
event.type = InputTypeLong; event.type = InputTypeLong;
notify_pubsub(&input->event_pubsub, &event); notify_pubsub(&input->event_pubsub, &event);
} }