Преглед изворни кода

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. */