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
This commit is contained in:
laforge 2008-01-22 15:46:19 +00:00
parent 237c7f9e9d
commit 322f6919c9
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}