JPG-Consulting / rfid-desfire

Arduino RFID Library for MFRC522 for DESFire
29 stars 13 forks source link

Error #5

Open macirtr opened 6 years ago

macirtr commented 6 years ago

Hello; Thank you for developing the library. 1) I added library from https://github.com/JPG-Consulting/rfid-desfire last version 2) I added library from https://github.com/miguelbalboa/rfid last version

My Code

include

include

void setup() { }

void loop() { }

Error In file included from C:\Users\flsft\Desktop\testrf\testrf.ino:4:0:

C:\Users\flsft\Documents\Arduino\libraries\rfid-desfire-master/Desfire.h: In constructor 'DESFire::DESFire(byte)':

C:\Users\flsft\Documents\Arduino\libraries\rfid-desfire-master/Desfire.h:132:70: error: no matching function for call to 'MFRC522::MFRC522(byte&)'

explicit DESFire(byte resetPowerDownPin) : MFRC522(resetPowerDownPin) {};

                                                                  ^

C:\Users\flsft\Documents\Arduino\libraries\rfid-desfire-master/Desfire.h:132:70: note: candidates are:

In file included from C:\Users\flsft\Desktop\testrf\testrf.ino:3:0:

C:\Users\flsft\Documents\Arduino\libraries\rfid-master\src/MFRC522.h:337:2: note: MFRC522::MFRC522()

MFRC522() : MFRC522(UNUSED_PIN, UNUSED_PIN) {};

^

C:\Users\flsft\Documents\Arduino\libraries\rfid-master\src/MFRC522.h:337:2: note: candidate expects 0 arguments, 1 provided

C:\Users\flsft\Documents\Arduino\libraries\rfid-master\src/MFRC522.h:333:2: note: MFRC522::MFRC522(byte, byte, SPIClass*, SPISettings)

MFRC522(const byte chipSelectPin, const byte resetPowerDownPin,

^

C:\Users\flsft\Documents\Arduino\libraries\rfid-master\src/MFRC522.h:333:2: note: candidate expects 4 arguments, 1 provided

In file included from C:\Users\flsft\Desktop\testrf\testrf.ino:3:0:

C:\Users\flsft\Documents\Arduino\libraries\rfid-master\src/MFRC522.h:139:7: note: constexpr MFRC522::MFRC522(const MFRC522&)

class MFRC522 {

   ^

C:\Users\flsft\Documents\Arduino\libraries\rfid-master\src/MFRC522.h:139:7: note: no known conversion for argument 1 from 'byte {aka unsigned char}' to 'const MFRC522&'

C:\Users\flsft\Documents\Arduino\libraries\rfid-master\src/MFRC522.h:139:7: note: constexpr MFRC522::MFRC522(MFRC522&&)

C:\Users\flsft\Documents\Arduino\libraries\rfid-master\src/MFRC522.h:139:7: note: no known conversion for argument 1 from 'byte {aka unsigned char}' to 'MFRC522&&'

Can you help me? Should I use a special version MFRC522 library?

Thanks.