aboutsummaryrefslogblamecommitdiffstats
path: root/dev-util/mtools/files/mtools-new-libfreefare-version.patch
blob: f7f6c4ebf638be8df457a375ee8e021e07bdf423 (plain) (tree)




















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