Merge branch 'master' of github.com:F-WuTS/compLIB
This commit is contained in:
commit
7aa415f860
4 changed files with 25 additions and 11 deletions
|
@ -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()
|
Reference in a new issue