fix: bugs in plotting/logging

This commit is contained in:
bernis
2016-06-18 19:38:35 +02:00
parent 672d8551a2
commit fcf5c14bde
3 changed files with 49 additions and 34 deletions

View File

@@ -1,3 +1,4 @@
import logging
try:
import MFRC522
except:
@@ -6,14 +7,13 @@ except:
import signal
import thread
import time
import logging
class RFID:
def __init__(self, callbackf):
logging.info("RFID Reader initialized!")
self.reader = MFRC522.MFRC522()
self.reader = MFRC522.MFRC522(spd=500000)
signal.signal(signal.SIGINT, self.stop)
self.callback = callbackf
self.loop = True