From 3749560710748f1dce697d6933bd8a101567a764 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 20 Oct 2014 01:24:15 +0300 Subject: [PATCH] make readinc mode default and vsync an option --- host/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/host/main.c b/host/main.c index a21e419..2f13059 100644 --- a/host/main.c +++ b/host/main.c @@ -637,7 +637,7 @@ int main(int argc, char *argv[]) const char *tasfn = NULL; const char *outfn = NULL; uint8_t *tas_data = NULL; - int use_readinc = 0; // frame increment on read + int use_vsync = 0; // frame increment on vsync int tas_skip = 0; int enable_sent = 0; int abort_sent = 0; @@ -673,8 +673,8 @@ int main(int argc, char *argv[]) missing_arg(i); tas_skip = atoi(argv[i]); continue; - case 'r': - use_readinc = 1; + case 'v': + use_vsync = 1; continue; default: fprintf(stderr, "bad arg: %s\n", argv[i]); @@ -980,7 +980,7 @@ int main(int argc, char *argv[]) pkt_out.type = PKT_STREAM_ENABLE; pkt_out.enable.stream_to = (tas_data != NULL); pkt_out.enable.stream_from = (outf != NULL); - pkt_out.enable.use_readinc = use_readinc; + pkt_out.enable.use_readinc = !use_vsync; ret = submit_urb(dev.fd, &urb[URB_DATA_OUT], dev.ifaces[0].ep_out, &pkt_out, sizeof(pkt_out)); -- 2.39.2