소스 검색

Long press OK to center the signal again.

antirez 3 년 전
부모
커밋
5464f99a71
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      view_raw_signal.c

+ 1 - 0
view_raw_signal.c

@@ -73,6 +73,7 @@ void process_input_raw_pulses(ProtoViewApp *app, InputEvent input) {
          * previous samples. */
         if (input.key == InputKeyRight) app->signal_offset++;
         else if (input.key == InputKeyLeft) app->signal_offset--;
+        else if (input.key == InputKeyOk) app->signal_offset = 0;
     } else if (input.type == InputTypeShort) {
         if (input.key == InputKeyOk) {
             /* Reset the current sample to capture the next. */