summaryrefslogtreecommitdiffstats
path: root/pyk8055
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-05 07:52:26 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-05 07:52:26 +0200
commit036bcb8da90fa19b4a6270da4b4b0df5806f2a39 (patch)
tree5e0e96e34d99bc38992b34762d1fdead7418b5f6 /pyk8055
parentacad3bf6c8d3751d42f1fa49b95763b9e5388c07 (diff)
downloadk8055-036bcb8da90fa19b4a6270da4b4b0df5806f2a39.zip
k8055-036bcb8da90fa19b4a6270da4b4b0df5806f2a39.tar.gz
set_debug_(on|off) => set_debug/get_debug
Diffstat (limited to 'pyk8055')
-rw-r--r--pyk8055/libk8055.i12
1 files changed, 6 insertions, 6 deletions
diff --git a/pyk8055/libk8055.i b/pyk8055/libk8055.i
index b6ecd70..7e35c9b 100644
--- a/pyk8055/libk8055.i
+++ b/pyk8055/libk8055.i
@@ -49,8 +49,8 @@ extern int k8055_counter_1( struct k8055_dev* dev );
extern int k8055_counter_2( struct k8055_dev* dev );
*/
/*extern char* k8055_version( void );*/
-extern void k8055_set_debug_on( void );
-extern void k8055_set_debug_off( void );
+extern void k8055_set_debug( int status );
+extern void k8055_get_debug( void );
extern int k8055_search_devices( void );
extern int k8055_open_device( struct k8055_dev* dev, int board_address );
extern int k8055_close_device( struct k8055_dev* dev );
@@ -109,10 +109,10 @@ class k8055:
# return _pyk8055.k8055_version();
def DebugOn(self):
- return _pyk8055.k8055_set_debug_on();
+ return _pyk8055.k8055_set_debug(1);
def DebugOff(self):
- return _pyk8055.k8055_set_debug_off();
+ return _pyk8055.k8055_set_debug(0);
def SearchDevices(self):
return _pyk8055.k8055_search_devices()
@@ -250,8 +250,8 @@ extern int k8055_counter_1( struct k8055_dev* dev );
extern int k8055_counter_2( struct k8055_dev* dev );
*/
/*extern char* k8055_version( void );*/
-extern void k8055_set_debug_on( void );
-extern void k8055_set_debug_off( void );
+extern void k8055_set_debug( int status );
+extern void k8055_get_debug( void );
extern int k8055_search_devices( void );
extern int k8055_open_device( struct k8055_dev* dev, int board_address );
extern int k8055_close_device( struct k8055_dev* dev );