X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/blobdiff_plain/0926876978e80ae1e9c29d9f33a8f8ec0babaf5e..2999345d8f501d54dc19bc3f60f01c573910d565:/usbtmc.c diff --git a/usbtmc.c b/usbtmc.c index 622ea80..32f83a8 100644 --- a/usbtmc.c +++ b/usbtmc.c @@ -126,8 +126,7 @@ usb_dev_handle* usbtmc_initscope(void) { //Locate and open the scope dev = usbtmc_find_scope(); if (!dev) { - printf("No scope found.\n"); - exit(1); + return NULL; } usbtmc_claim(dev); //The following code isn't really necessary, the program works