🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Dial\MFRC522.cpp error

    Modules
    2
    3
    757
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gordshG
      gordsh
      last edited by

      Hi Team:

      I am getting the following error on an Arduino program that worked perfectly prior.

      c:\Work\ArduinoV2\libraries\M5Dial\src\utility\MFRC522.cpp: In member function 'uint8_t MFRC522::PCD_CommunicateWithPICC(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t*, uint8_t*, uint8_t, bool)':
      c:\Work\ArduinoV2\libraries\M5Dial\src\utility\MFRC522.cpp:464:20: error: '_validBits' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      if (backLen < 2 || _validBits != 0) {
      ~^~~~~~
      cc1plus.exe: some warnings being treated as errors*

      I am using

      Arduino IDE - C2.3.4
      esp32 by Espressif Systems 3.1.1
      M5Stack by M5Stack official 2.1.3

      Any help/ideas?

      felmueF 1 Reply Last reply Reply Quote 0
      • felmueF
        felmue @gordsh
        last edited by

        Hello @gordsh

        it looks like this warning/error has been fixed a while ago - see here.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        gordshG 1 Reply Last reply Reply Quote 0
        • gordshG
          gordsh @felmue
          last edited by

          @felmue Thanks so much, that fixed it...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post