From 8ddc994007b9d2320b59e33e9e991cc4e0073aa3 Mon Sep 17 00:00:00 2001 From: Mario Gomez Date: Fri, 18 Jul 2014 21:15:31 -0600 Subject: [PATCH] Read example now loops until Ctrl-C is caught. --- Read.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Read.py b/Read.py index c90e213..964cd47 100644 --- a/Read.py +++ b/Read.py @@ -20,6 +20,10 @@ signal.signal(signal.SIGINT, end_read) # Create an object of the class MFRC522 MIFAREReader = MFRC522.MFRC522() +# Welcome message +print "Welcome to the MFRC522 data read example" +print "Press Ctrl-C to stop." + # This loop keeps checking for chips. If one is near it will get the UID and authenticate while continue_reading: @@ -55,5 +59,3 @@ while continue_reading: else: print "Authentication error" - # Make sure to stop scanning for cards - continue_reading = False