|
@@ -438,6 +438,7 @@ while True: |
|
|
# 1 => door open |
|
|
# 1 => door open |
|
|
if doorstate == 1: |
|
|
if doorstate == 1: |
|
|
# don't do a doorShutdown when user comes in |
|
|
# don't do a doorShutdown when user comes in |
|
|
|
|
|
# or when door stays open after user left |
|
|
if (time.time() > (starttime + 15) and inUse == True): |
|
|
if (time.time() > (starttime + 15) and inUse == True): |
|
|
doorShutdown() |
|
|
doorShutdown() |
|
|
|
|
|
|
|
|