New API function freefare_get_tag_uid().

- Deprecates mifare_classic_get_uid() and mifare_ultralight_get_uid().
This commit is contained in:
Romain Tartiere 2010-03-30 16:18:58 +00:00
parent 85e7174a02
commit 574b068b3f
8 changed files with 45 additions and 3 deletions

View file

@ -357,3 +357,15 @@ test_mifare_classic_sector_boundaries (void)
}
}
}
void
test_mifare_classic_get_uid_freefare_get_tag_uid (void)
{
char *s1 = mifare_classic_get_uid (tag);
char *s2 = freefare_get_tag_uid (tag);
cut_assert_equal_string (s1, s2, cut_message ("UID don't match"));
free (s1);
free (s2);
}