new: button to restart in auto or manu mode

This commit is contained in:
Simone Margaritelli
2019-11-04 17:35:06 +01:00
parent e336fca0de
commit 364af70ad5
4 changed files with 37 additions and 12 deletions

View File

@ -65,6 +65,7 @@ if __name__ == '__main__':
elif args.do_manual:
logging.info("entering manual mode ...")
agent.mode = 'manual'
agent.last_session.parse(agent.view(), args.skip_session)
if not args.skip_session:
logging.info(
@ -85,6 +86,7 @@ if __name__ == '__main__':
else:
logging.info("entering auto mode ...")
agent.mode = 'auto'
agent.start()
while True: