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
2 changed files with 3 additions and 2 deletions

View File

@@ -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);
}