X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=host%2Fmain.c;h=2f1305984c06cb5880a0fbe9a47104001db87273;hb=3749560710748f1dce697d6933bd8a101567a764;hp=a21e41904e3730debb640afb4ede09b0978c607a;hpb=e8e66d024473bcf0c9e535cc3cb8b71677257687;p=teensytas.git 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));