Coder Social home page Coder Social logo

Comments (5)

tueddy avatar tueddy commented on June 6, 2024 1

Until the problem is solved in this library you can use my fork
https://github.com/tueddy/rfid.git

Or change "__FlashStringHelper " to "char" and remove "F()", see changes here: master...tueddy:rfid:master

from rfid.

dok-net avatar dok-net commented on June 6, 2024

Any way to get arround this bug (feature)?

Yes: espressif/arduino-esp32#8111

from rfid.

paulocoutinhox avatar paulocoutinhox commented on June 6, 2024

Hi,

I have the same problem:
https://forum.arduino.cc/t/macro-f-error/1118126/8

The implementation of the F() macro was changed in ESP32 core version 2.0.8.
It is now

#define F(string_literal) (string_literal)
instead of casting to const __FlashStrinHelper *.
This breaks use cases like

const __FlashStringHelper *MFRC522::GetStatusCodeName(MFRC522::StatusCode code  ///< One of the StatusCode enums.
                                        ) {
    switch (code) {
        case STATUS_OK:             return F("Success.");
        case STATUS_ERROR:          return F("Error in communication.");
        ...
        default:                    return F("Unknown error");
    }
} // End GetStatusCodeName()

Until the solution, downgrade to ESP32 core 2.0.7.

from rfid.

jerryg2003 avatar jerryg2003 commented on June 6, 2024

Had same problem. Change F(“X”) in “return” statements in MFRC522.cpp to “((__FlashStringHelper *) “X”)” and all works fine with ESP32 2.0.8.

ESP32 team says this will be fixed at their end in 2.0.9.

from rfid.

tueddy avatar tueddy commented on June 6, 2024

Problem is fixed with Arduino 2.0.9 (PlatformIO Package 6.3.0)

from rfid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.