Ver código fonte

[fix] for new freefarelib

Pierre Bourdin 3 anos atrás
pai
commit
9f6d8d427f
3 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      Makefile
  2. 1 1
      README.md
  3. 1 1
      poolset.c

+ 1 - 1
Makefile

@@ -18,5 +18,5 @@ selecta_change_from_orig:
 #	Don't work in Makefile !
 
 all:
-	gcc -o poolset -lusb -lnfc -lfreefare poolset.c
+	gcc poolset.c -lusb -lnfc -lfreefare -o poolset
 

+ 1 - 1
README.md

@@ -3,7 +3,7 @@ RFID Poolset
 
 PoC to load and reload credits from Mifare Classic (S50)
 
-First, you need libnfc and libfreefare.
+First, you need libnfc and libfreefare, and maybe not from the Debian repository...
 Second, you have to compile ;)
 
 		$ make all

+ 1 - 1
poolset.c

@@ -20,7 +20,7 @@ void rw_tag(int coins, char *buy_date, char *expire_date) {
 	
 	nfc_context *context;		//init libnfc
 	nfc_device *pnd;			//trouver un lecteur
-	FreefareTag *tags = NULL;	//stockage des tags
+	MifareTag *tags = NULL;	//stockage des tags
 	int i, nbsect;
 
 	nfc_init(&context);