X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/blobdiff_plain/c1ec14bbf5b7269df2ab382250556f9146b0e042..b74fea90bd5429ab527016eb89d98b4c6a246e68:/rigol.c diff --git a/rigol.c b/rigol.c index 93b8566..6ae9d73 100644 --- a/rigol.c +++ b/rigol.c @@ -165,8 +165,6 @@ int main(int argc, char **argv) //Disable keylock, so the user doesn't have to press the 'force'-button l=usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0); - //Free up and exit - usb_release_interface(sc,0); - usb_close(sc); + usbtmc_close(sc); return 0; }