chickenhouse/source/gate_guard.py
Thomas Klaehn aa146b15e5 gate: reorder - stage 2
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2018-08-27 11:26:31 +02:00

23 lines
339 B
Python

'''
Created on Dec 19, 2016
@author: klaehn
'''
import sys
import time
import gate
def main():
gate_state = gate.Gate()
try:
while True:
gate_state.poll()
time.sleep(0.1)
except KeyboardInterrupt:
print "key exit"
return None
if __name__ == "__main__":
sys.exit(main())