X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/blobdiff_plain/713be7a43ed11947c358fc67c11b9df7b0be204c..7df76f49adf30ac260c99649678b084c9b6c282b:/scope.c?ds=sidebyside diff --git a/scope.c b/scope.c index 3152243..862f32b 100644 --- a/scope.c +++ b/scope.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "usbtmc.h" #include "scope.h" @@ -36,8 +37,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) {