Просмотр исходного кода

Long press OK to center the signal again.

antirez 3 лет назад
Родитель
Сommit
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. */