X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/blobdiff_plain/483a564bf0578b64b25c68ffabdfdc0fb9f0f2b7..90e416c4df00269ab86d349ff677d0a2c0b0bd40:/usbtmc.c diff --git a/usbtmc.c b/usbtmc.c index 332cbda..e1366ae 100644 --- a/usbtmc.c +++ b/usbtmc.c @@ -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. */