New API function freefare_get_tag_uid().
- Deprecates mifare_classic_get_uid() and mifare_ultralight_get_uid().
This commit is contained in:
parent
85e7174a02
commit
574b068b3f
8 changed files with 45 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue