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

    M5Dial\MFRC522.cpp error

    Scheduled Pinned Locked Moved Modules
    3 Posts 2 Posters 2.4k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          gordsh @felmue
          last edited by

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

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post