aboutsummaryrefslogtreecommitdiffstats
path: root/src/hih61xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hih61xx.c')
-rw-r--r--src/hih61xx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hih61xx.c b/src/hih61xx.c
index cf00c04..a985fda 100644
--- a/src/hih61xx.c
+++ b/src/hih61xx.c
@@ -11,7 +11,7 @@
#include "hih61xx.h"
#include "deftypes.h"
-extern uint16 devicef;
+//extern uint16 devicef;
extern void bus_err(int ern);
extern void print_help(void);
extern uchar *xchg_data (uchar *buf, uint8 wrlen, uint8 waitlen, uint8 rdlen);
@@ -19,7 +19,7 @@ unsigned char buf[32];
-void hih61xx_print_all(void)
+void hih61xx_print_all(const uchar *opts)
{
printf(
"============ HiH61xx interface ===========\n"
@@ -154,7 +154,7 @@ void hih61xx_read_one(const uchar *opts)
if( !isdigit(*(opts+i)) ){ //# Check the register string
printf("The Register address must be an integer!\n");
print_help();
- hih61xx_print_all();
+ hih61xx_print_all(NULL);
exit (EXIT_FAILURE);
}
temp[i] = *(opts+i);
@@ -181,7 +181,7 @@ void hih61xx_read_one(const uchar *opts)
break;
default:
print_help();
- hih61xx_print_all();
+ hih61xx_print_all(NULL);
exit(EXIT_FAILURE);
}
}