From cf7f9ec0cc928883700e7153529b50e5fc362ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20G=C3=B3mez?= Date: Sun, 25 Mar 2018 18:04:34 -0600 Subject: [PATCH] Added fix to NRSTPD reference (Issue #52) --- MFRC522.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MFRC522.py b/MFRC522.py index 441482a..d1ee8b6 100644 --- a/MFRC522.py +++ b/MFRC522.py @@ -130,7 +130,7 @@ class MFRC522: def __init__(self, dev='/dev/spidev0.0', spd=1000000): spi.openSPI(device=dev,speed=spd) GPIO.setmode(GPIO.BOARD) - GPIO.setup(NRSTPD, GPIO.OUT) + GPIO.setup(self.NRSTPD, GPIO.OUT) GPIO.output(self.NRSTPD, 1) self.MFRC522_Init()