diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-01-22 15:46:19 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-01-22 15:46:19 +0000 |
commit | 322f6919c993efb7fadcf61f212a051ef7287cec (patch) | |
tree | 0c7294f9050f3d45fbcf34fb57d7db777f5a546b /src | |
parent | 237c7f9e9d0aad3a9830498a9bdb5fe5dd94df9e (diff) |
Return size of mifare ultralight in bytes, just like other protocols (Robert
Schlephorst)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2039 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src')
-rw-r--r-- | src/rfid_proto_mifare_ul.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rfid_proto_mifare_ul.c b/src/rfid_proto_mifare_ul.c index e1fe3b9..ea42166 100644 --- 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; } |