summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-09-22 23:12:40 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-09-22 23:12:40 +0000
commita38aca0474a8c2b5739f3dac1b5028fc19ab7700 (patch)
tree84c7db8e3488caac50228f71fcb4b8b4d6559f38 /utils
parent1b891c2d37b9225d6d9e80bc7f16f4ae78cc5a83 (diff)
try OpenPCD if there is no cm5121 available
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1887 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'utils')
-rw-r--r--utils/librfid-tool.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/librfid-tool.c b/utils/librfid-tool.c
index cc5fbdb..0c21a4d 100644
--- 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");
personal git repositories of Harald Welte. Your mileage may vary