diff --git a/MFRC522.py b/MFRC522.py index 82793dc..2b6d746 100644 --- a/MFRC522.py +++ b/MFRC522.py @@ -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)