miguelbalboa / rfid

Arduino RFID Library for MFRC522
The Unlicense
2.75k stars 1.43k forks source link

Can't compile with "Arduino Nano Every" #505

Closed ghost closed 4 years ago

ghost commented 4 years ago

The MFRC522 Library can't compile with the new "Arduino Nano Every". It's ok for the old Arduino Nano.

I tried with the different examples provided with the library : Dumpinfo, RFID-cloner, etc.

The error is :

Arduino.h:30:20: error: cannot convert 'const char' to 'const __FlashStringHelper' in return

define F(str) (str)

                ^

MFRC522.cpp:1341:24: note: in expansion of macro 'F'

default: return F("Unknown type");

Rotzbua commented 4 years ago

That is a problem of the Arduino Nano Every software. Seems they use incompatible types. Please reports this to arduino team.

KaRa7 commented 4 years ago

Yesterday I was so close to post the exact same issue. Have you already reported it somewhere? Could you keep us updated?

ghost commented 4 years ago

I reported the problem to arduino team and there is a patch here : https://github.com/arduino/ArduinoCore-megaavr/issues/62