1
0
Fork 0

start serial_read_thread as a daemon

This commit is contained in:
Kevin Matz 2019-07-30 10:11:18 -04:00
parent 68b9e26064
commit d54ecdcabd
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ class Robot:
self.config.get("baud", 9600),
timeout=0)
self.serial_read_thread = threading.Thread(
target=self.serial_read_worker)
target=self.serial_read_worker,
daemon=True)
self.serial_read_thread.start()
except NameError:
logger.error("ERROR: configuration hasn't been set!")