diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-03-01 07:16:30 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-03-01 07:16:30 +0100 |
commit | 98e534e051713392fffe7ce59cbfb4188fba0f2a (patch) | |
tree | 656a1964257b8fc66fb514325ceb19a6bc45e911 /libk8055/main.c | |
parent | 04c2bbda09f89ed2301c81ba25f92d587f2d0fdb (diff) | |
download | k8055-98e534e051713392fffe7ce59cbfb4188fba0f2a.zip k8055-98e534e051713392fffe7ce59cbfb4188fba0f2a.tar.gz |
add set_debug_(on|off), board_address becomes an integer
Diffstat (limited to 'libk8055/main.c')
-rw-r--r-- | libk8055/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libk8055/main.c b/libk8055/main.c index 9f475e6..cb8d4b0 100644 --- a/libk8055/main.c +++ b/libk8055/main.c @@ -43,7 +43,7 @@ #define false 0 #define true 1 -extern int debug; +int debug = 0; int ia1 = -1; int ia2 = -1; @@ -144,7 +144,8 @@ int read_param(int argc,char *params[]) !Convert_StringToInt(params[i]+6,&dbt2) ) erreurParam = true; else if ( !strcmp(params[i],"-debug") ){ - debug = true; + debug = 1; + set_debug_on(); } else if ( !strcmp(params[i],"-reset1") ) resetcnt1 = true; |