]> git.zerfleddert.de Git - rigol/blobdiff - rigol.c
add small webserver "rigold", currently only serving the contents of the LCD
[rigol] / rigol.c
diff --git a/rigol.c b/rigol.c
index 6ae9d73dac9a3eb3f0d73b74f965e5ef7923a9dc..5dfec41cea9e586491cd021a272983d625331a7e 100644 (file)
--- a/rigol.c
+++ b/rigol.c
@@ -104,6 +104,7 @@ int main(int argc, char **argv)
 
        //Initialize scope
        sc = usbtmc_initscope();
 
        //Initialize scope
        sc = usbtmc_initscope();
+       usbtmc_claim(sc);
        buff = malloc (1024*1024); 
        if (buff == NULL) {
                perror("malloc");
        buff = malloc (1024*1024); 
        if (buff == NULL) {
                perror("malloc");
@@ -165,6 +166,7 @@ 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); 
 
        //Disable keylock, so the user doesn't have to press the 'force'-button
        l=usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0); 
 
+       usbtmc_release(sc);
        usbtmc_close(sc);
        return 0;
 }
        usbtmc_close(sc);
        return 0;
 }
Impressum, Datenschutz