X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/blobdiff_plain/483a564bf0578b64b25c68ffabdfdc0fb9f0f2b7..a163d2fb2ffbcf4babb60d164b8f9dfe7bde61e0:/usbtmc.c diff --git a/usbtmc.c b/usbtmc.c index 332cbda..2ccbf89 100644 --- a/usbtmc.c +++ b/usbtmc.c @@ -198,7 +198,7 @@ int usbtmc_sendscpi(struct scope *sc, char* cmd, req->bTag = sc->usb.bTag; req->bTagInverse = ~sc->usb.bTag; req->TransferSize = LE32(sc->usb.wMaxPacketSize_in); - req->bmTransferAttributes = USBTMC_TRANSFERATTRIB_EOM; + req->bmTransferAttributes = 0; req->TermChar = 0; /* send read command */ @@ -285,7 +285,7 @@ struct scope* usbtmc_initscope(void) { } usbtmc_claim(sc); - usbtmc_get_capabilities(sc); + sc->usb.cap = usbtmc_get_capabilities(sc); printf("Device status: 0x%x\n", usbtmc_status(sc)); /* The following code isn't really necessary, the program works OK without it too. */