소스 검색

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

* Input: properly cast timer arg pointer to InputPinState
* update codeowners
あく 4 년 전
부모
커밋
e39e1c3dce
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      .github/CODEOWNERS
  2. 2 2
      applications/input/input.c

+ 1 - 0
.github/CODEOWNERS

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

+ 2 - 2
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);
 }