Update MFRC522.py
Avoids warning message.
This commit is contained in:
parent
2786a14420
commit
5efb3a7bbd
1 changed files with 1 additions and 0 deletions
|
@ -373,6 +373,7 @@ def end_read(signal,frame):
|
|||
global continue_reading
|
||||
print "Ctrl+C captured, ending read."
|
||||
continue_reading = False
|
||||
GPIO.cleanup() # Suggested by Marjan Trutschl
|
||||
|
||||
signal.signal(signal.SIGINT, end_read)
|
||||
|
||||
|
|
Loading…
Reference in a new issue