Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teensy 4.1 fails to read version with 1.4.10 #591

Open
bigoren opened this issue Dec 7, 2022 · 2 comments
Open

Teensy 4.1 fails to read version with 1.4.10 #591

bigoren opened this issue Dec 7, 2022 · 2 comments
Labels
bug 🐛 a not intended feature

Comments

@bigoren
Copy link

bigoren commented Dec 7, 2022

Step 1: Describe your environment

  • OS version: Windows
  • Arduino IDE version: VSCode with PIO, Teensyduino 1.56
  • MFRC522 Library version: 1.4.10
  • Arduino device: Teensy 4.1
  • MFRC522 device: MIFARE1K

Step 2: Describe the problem

When working with version 1.4.10 reading the VersionReg returns 0x0 instead of the expected 0x92,
Reverting back to 1.4.9 fixes the issue

Steps to reproduce:

  1. Initialize MFRC522 device
  2. Read VersionReg
  3. Print result

Observed Results:

0x0 printed

Expected Results:

0x92 print

Relevant Code:

void setup() {
  SPI.begin();     // Init SPI bus
  rfid.PCD_Init(); // Init MFRC522
  /* read and printout the MFRC522 version (valid values 0x91 & 0x92)*/
  Serial.print(F("RFID Reader version: 0x"));
  byte readReg = rfid.PCD_ReadRegister(rfid.VersionReg);
  Serial.println(readReg, HEX);
}
@Rotzbua Rotzbua added the bug 🐛 a not intended feature label Dec 14, 2022
@Rotzbua
Copy link
Collaborator

Rotzbua commented Dec 14, 2022

Function change was #569
Maybe teensy handles yield() different than Arduino & ESP.

@Rotzbua
Copy link
Collaborator

Rotzbua commented Dec 29, 2023

@bigoren Have you tried to fix it or have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 a not intended feature
Projects
None yet
Development

No branches or pull requests

2 participants