We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83bd4bd commit a5b7e6fCopy full SHA for a5b7e6f
pirc522/rfid.py
@@ -48,7 +48,7 @@ def __init__(self, bus=0, device=0, speed=1000000, pin_rst=22,
48
self.spi.max_speed_hz = speed
49
50
GPIO.setmode(pin_mode)
51
- if pin_rst is not None:
+ if pin_rst != 0:
52
GPIO.setup(pin_rst, GPIO.OUT)
53
GPIO.output(pin_rst, 1)
54
GPIO.setup(pin_irq, GPIO.IN, pull_up_down=GPIO.PUD_UP)
0 commit comments