Merge pull request #3 from F-WuTS/bugfix/change-health-check-times

Update Spi.py
This commit is contained in:
itssme 2022-02-14 15:18:00 +01:00 committed by GitHub
commit 5d6a4acdf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,9 +209,9 @@ class Spi(object):
@staticmethod @staticmethod
def health_check_loop(): def health_check_loop():
while SPI_HEALTH: while SPI_HEALTH:
if last_spi_call + 0.75 < time.time(): if last_spi_call + 0.5 < time.time():
Spi.health_check() Spi.health_check()
time.sleep(0.5) time.sleep(0.1)
@staticmethod @staticmethod
def get_version(): def get_version():