Merge branch 'master' of github.com:F-WuTS/compLIB

This commit is contained in:
Konstantin Lampalzer 2021-09-05 12:20:29 +02:00
commit 7aa415f860
4 changed files with 25 additions and 11 deletions

View file

@ -174,13 +174,14 @@ class Spi(object):
print("Unable to read Version! Make sure the mainboard is connected!")
sys.exit()
@staticmethod
def start_health_check_loop():
health_check_thread = Thread(target=Spi.health_check_loop)
health_check_thread.setDaemon(True)
health_check_thread.start()
@staticmethod
def health_check_loop():
while True:
Spi.health_check()
time.sleep(0.5)
health_check_thread = Thread(target=Spi.health_check_loop)
health_check_thread.setDaemon(True)
health_check_thread.start()