remove unneeded include for usb.h
[rigol] / scope.c
diff --git a/scope.c b/scope.c
index d2bae1324d3bfe42a67d46f491febc0c07ec0e49..c316ee527e3f021eb52c6130d958fe6f6b8b85e8 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -1,4 +1,3 @@
-#include <usb.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -25,11 +24,16 @@ void claimscope(struct scope* sc)
 
 void releasescope(struct scope* sc)
 {
-       //Disable keylock, so the user doesn't have to press the 'force'-button
+       /* Disable keylock, so the user doesn't have to press the 'force'-button */
        sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0); 
        return usbtmc_release(sc);
 }
 
+void resetscope(struct scope* sc)
+{
+       return usbtmc_reset(sc);
+}
+
 struct scope* initscope(void)
 {
        struct scope *sc;
Impressum, Datenschutz