Variable Not being Defined
Posted: Tue Jun 11, 2019 11:44 pm
I created a simply timer variable but it keeps on saying the variable is not defined but i can not tell why, if someone can help the section of code is below, Thanks.
Code: Select all
def listen_rfid(self):
global pin
global accessLogId
global counter
keys = "X^1234567890XXXXqwertzuiopXXXXasdfghjklXXXXXyxcvbnmXXXXXXXXXXXXXXXXXXXXXXX"
dev = InputDevice('/dev/input/event3')
rfid_presented = ""
counter = 0
while True:
if counter == 1:
dev = InputDevice('/dev/input/event2')
else:
dev = InputDevice('/dev/input/event3')