X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/blobdiff_plain/0926876978e80ae1e9c29d9f33a8f8ec0babaf5e..2999345d8f501d54dc19bc3f60f01c573910d565:/scope.c diff --git a/scope.c b/scope.c index 3152243..806ba34 100644 --- a/scope.c +++ b/scope.c @@ -36,8 +36,10 @@ struct scope* initscope(void) usbdev = usbtmc_initscope(); - if (!usbdev) - return NULL; + if (!usbdev) { + printf("No scope found.\n"); + exit(EXIT_FAILURE); + } sc = calloc(1, sizeof(struct scope)); if (sc == NULL) {