]> git.zerfleddert.de Git - rigol/blobdiff - usbtmc.c
fix bmTransferAttributes in REQUEST_DEV_DEP_MSG_IN
[rigol] / usbtmc.c
index 332cbda8f192f85a4b1ec5f5dad88b4db5bb6d41..2ccbf897ca4617a51e514a65c03f4d6804c8ed73 100644 (file)
--- 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. */
Impressum, Datenschutz