summaryrefslogtreecommitdiffstats
path: root/libk8055/main.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-04-15 18:09:56 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-04-15 18:09:56 +0200
commit7211c6ced478aa2d1e2e20da2d9659f706e2e718 (patch)
tree95973463e3f079f2f937d112d317383ee4dc62d8 /libk8055/main.c
parentf4cf6401bd6d40a853d0eb39c0d90588d4c98bb0 (diff)
downloadk8055-master.zip
k8055-master.tar.gz
libusb : libusb_set_debug -> libusb_set_optionHEADmaster
Diffstat (limited to 'libk8055/main.c')
-rw-r--r--libk8055/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libk8055/main.c b/libk8055/main.c
index 41ba33c..70ac518 100644
--- a/libk8055/main.c
+++ b/libk8055/main.c
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <assert.h>
#include <sys/time.h>
+#include <libusb.h>
#include "k8055.h"
#define STR_BUFF 256
@@ -158,7 +159,7 @@ int main ( int argc,char* params[] ) {
return ( EXIT_FAILURE );
}
if ( debug )
- k8055_set_debug(dev,3);
+ k8055_set_debug(dev, LIBUSB_LOG_LEVEL_DEBUG);
if ( k8055_open_device( dev, ipid )<0 ) {
fprintf(stderr,"Could not open the k8055 (port:%d)\nPlease ensure that the device is correctly connected.\n",ipid );
return ( EXIT_FAILURE );