Explorar o código

Long press OK to center the signal again.

antirez %!s(int64=3) %!d(string=hai) anos
pai
achega
5464f99a71
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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. */