diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-05 07:52:26 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-05 07:52:26 +0200 |
commit | 036bcb8da90fa19b4a6270da4b4b0df5806f2a39 (patch) | |
tree | 5e0e96e34d99bc38992b34762d1fdead7418b5f6 /libk8055/libk8055.c | |
parent | acad3bf6c8d3751d42f1fa49b95763b9e5388c07 (diff) | |
download | k8055-036bcb8da90fa19b4a6270da4b4b0df5806f2a39.zip k8055-036bcb8da90fa19b4a6270da4b4b0df5806f2a39.tar.gz |
set_debug_(on|off) => set_debug/get_debug
Diffstat (limited to 'libk8055/libk8055.c')
-rw-r--r-- | libk8055/libk8055.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libk8055/libk8055.c b/libk8055/libk8055.c index a73312d..917cff0 100644 --- a/libk8055/libk8055.c +++ b/libk8055/libk8055.c @@ -197,12 +197,13 @@ static int k8055_takeover_device( libusb_device_handle* handle, int interface ) return 0; } -void k8055_set_debug_on( void ) { - debug = 1; +int k8055_set_debug( int status ) { + debug = ((status>0) ? 1 : 0 ); + return debug; } -void k8055_set_debug_off( void ) { - debug = 0; +int k8055_get_debug( void ) { + return debug; } char* k8055_version( void ) { |