]> git.zerfleddert.de Git - rigol/blobdiff - usbtmc.c
make capabilities accessible from struct scope
[rigol] / usbtmc.c
index 332cbda8f192f85a4b1ec5f5dad88b4db5bb6d41..e1366ae8cd8b2082eb7aebb9d5f8945b1bd5a81c 100644 (file)
--- a/usbtmc.c
+++ b/usbtmc.c
@@ -285,7 +285,7 @@ struct scope* usbtmc_initscope(void) {
        }
 
        usbtmc_claim(sc);
        }
 
        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. */
        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