]> git.zerfleddert.de Git - hmcfgusb/blobdiff - hmcfgusb.c
better input parsing/output formatting
[hmcfgusb] / hmcfgusb.c
index a73cd65e6d6a8713d544b76276fb9166afe48567..b8c1546708802beba99b3f0b00f1eb21ad1ccee2 100644 (file)
@@ -49,7 +49,7 @@
 #define INTERFACE      0
 
 static int quit = 0;
 #define INTERFACE      0
 
 static int quit = 0;
-static int debug = 1;
+static int debug = 0;
 
 /* Not in all libusb-1.0 versions, so we have to roll our own :-( */
 static char * usb_strerror(int e)
 
 /* Not in all libusb-1.0 versions, so we have to roll our own :-( */
 static char * usb_strerror(int e)
@@ -422,3 +422,8 @@ void hmcfgusb_close(struct hmcfgusb_dev *dev)
 
        libusb_exit(NULL);
 }
 
        libusb_exit(NULL);
 }
+
+void hmcfgusb_set_debug(int d)
+{
+       debug = d;
+}
Impressum, Datenschutz