Skip to content

Commit

Permalink
Fix last commit
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Oct 27, 2023
1 parent 450b606 commit be867a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,15 +1061,15 @@ def wait_hmi_initialized(self, callback):

def retry():
if (self.hmi.initialized and self.profile_applied) or self._attemptNumber >= 20:
logging.info("[host] HMI initialized FINAL", self._attemptNumber, self.hmi.initialized)
logging.info("[host] HMI initialized FINAL %d %d", self._attemptNumber, self.hmi.initialized)
del self._attemptNumber
if HMI_TIMEOUT > 0:
self.ping_hmi_start()
callback(self.hmi.initialized)
else:
self._attemptNumber += 1
IOLoop.instance().call_later(0.25, retry)
logging.info("[host] HMI initialized waiting", self._attemptNumber)
logging.info("[host] HMI initialized waiting %d", self._attemptNumber)

self._attemptNumber = 0
retry()
Expand Down

0 comments on commit be867a3

Please sign in to comment.