Fix MIFARE UltraLight UID length.

Okay, either I lost some code somewhere, or I am really mad _AND_ fu**ing good at writing C code 'cause I am pretty sure I already fixed that at the very beginning of the UltraLight tags support and only after wrote all these test I don't have to modify so they pass.
This commit is contained in:
Romain Tartiere 2010-02-18 18:32:53 +00:00
parent 4c2da817f0
commit 1b6d7ab210

View file

@ -141,7 +141,7 @@ mifare_ultralight_connect (MifareUltralightTag tag)
ASSERT_INACTIVE (tag);
nfc_target_info_t pnti;
if (nfc_initiator_select_tag (tag->device, NM_ISO14443A_106, tag->info.abtUid, 7, &pnti)) {
if (nfc_initiator_select_tag (tag->device, NM_ISO14443A_106, tag->info.abtUid, 8, &pnti)) {
tag->active = 1;
} else {
errno = EIO;