projects
/
librfid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13dbb15
)
try OpenPCD if there is no cm5121 available
author
Harald Welte
<laforge@gnumonks.org>
Fri, 22 Sep 2006 23:12:40 +0000
(23:12 +0000)
committer
Harald Welte
<laforge@gnumonks.org>
Fri, 22 Sep 2006 23:12:40 +0000
(23:12 +0000)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1887
e0336214
-984f-0b4b-a45f-
81c69e1f0ede
utils/librfid-tool.c
patch
|
blob
|
history
diff --git
a/utils/librfid-tool.c
b/utils/librfid-tool.c
index
cc5fbdb
..
0c21a4d
100644
(file)
--- a/
utils/librfid-tool.c
+++ b/
utils/librfid-tool.c
@@
-64,8
+64,12
@@
static int init()
printf("opening reader handle\n");
rh = rfid_reader_open(NULL, RFID_READER_CM5121);
if (!rh) {
- fprintf(stderr, "error, no cm5121 handle\n");
- return -1;
+ fprintf(stderr, "No Omnikey Cardman 5121 found\n");
+ rh = rfid_reader_open(NULL, RFID_READER_OPENPCD);
+ if (!rh) {
+ fprintf(stderr, "No OpenPCD found either\n");
+ return -1;
+ }
}
printf("opening layer2 handle\n");