]> git.zerfleddert.de Git - rigol/blobdiff - scope.c
add struct for usbtmc header
[rigol] / scope.c
diff --git a/scope.c b/scope.c
index 3152243733ee7f1869ff4f35ebdf388a11c5aa00..806ba3475ca2f417479df1272c6180d29a9e285d 100644 (file)
--- 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) {
Impressum, Datenschutz