From 5efb3a7bbd4c1fff716f8702fefa506fd26c5c69 Mon Sep 17 00:00:00 2001 From: mxgxw Date: Mon, 11 Nov 2013 13:52:17 -0600 Subject: [PATCH] Update MFRC522.py Avoids warning message. --- MFRC522.py | 1 + 1 file changed, 1 insertion(+) 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)