You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifnotself.ready():
# do liveness check and update state if device is outdated but was ready on last communicationifself.outdated():
print(f"Device is outdated. {self.state.last_update=}, {datetime.now()=}")
# if last line is OK, then device is still alive, do update of stateifself.read_bufferandself.read_buffer[-1] ==CLAIRE_READY_SIGNAL:
print(f"Device is alive. {self.state.last_update=}, {datetime.now()=}")
self.busy=Falseself.update_state(quick=True)
else:
ifDEBUG:
print(f'{TAG}: Device is not ready. Waiting {UNDERFLOW_CHECK_INTERVAL} seconds.')
sleep(UNDERFLOW_CHECK_INTERVAL)
continue
The print statement in the else part seems conflicting with the actual if condition: if the claire device is not not self.ready(), it is printed that device is not ready. This is in conflict with each other. Unclear what the intended behavior is.
The text was updated successfully, but these errors were encountered:
In
_underflow_check
, the first few lines containsThe print statement in the
else
part seems conflicting with the actualif
condition: if the claire device is notnot self.ready()
, it is printed thatdevice is not ready
. This is in conflict with each other. Unclear what the intended behavior is.The text was updated successfully, but these errors were encountered: