projects
/
librfid
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return size of mifare ultralight in bytes, just like other protocols (Robert
[librfid]
/
src
/
rfid_proto_mifare_ul.c
diff --git
a/src/rfid_proto_mifare_ul.c
b/src/rfid_proto_mifare_ul.c
index
e1fe3b9
..
ea42166
100644
(file)
--- a/
src/rfid_proto_mifare_ul.c
+++ b/
src/rfid_proto_mifare_ul.c
@@
-109,7
+109,8
@@
mful_getopt(struct rfid_protocol_handle *ph, int optname, void *optval,
switch (optname) {
case RFID_OPT_PROTO_SIZE:
ret = 0;
- *size = 512;
+ /* we have to return the size in bytes, not bits */
+ *size = 512/8;
break;
}