aboutsummaryrefslogtreecommitdiffstats
path: root/dev-util/mtools/files/mtools-new-libfreefare-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/mtools/files/mtools-new-libfreefare-version.patch')
-rw-r--r--dev-util/mtools/files/mtools-new-libfreefare-version.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/mtools/files/mtools-new-libfreefare-version.patch b/dev-util/mtools/files/mtools-new-libfreefare-version.patch
new file mode 100644
index 0000000..f7f6c4e
--- /dev/null
+++ b/dev-util/mtools/files/mtools-new-libfreefare-version.patch
@@ -0,0 +1,21 @@
+--- src/Nfc.cpp (revision 24)
++++ src/Nfc.cpp (working copy)
+@@ -154,15 +156,9 @@
+
+ std::string Nfc::Tag::getUid() {
+ std::string uid = "";
+- if(isClassic()) {
+- char* pUid = mifare_classic_get_uid (tag);
+- uid = pUid;
+- free(pUid);
+- } else if(isUltralight()) {
+- char* pUid = mifare_ultralight_get_uid (tag);
+- uid = pUid;
+- free(pUid);
+- }
++ char* pUid = freefare_get_tag_uid (tag);
++ uid = pUid;
++ free(pUid);
+
+ return uid;
+ }