better reconnection
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 36s
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 36s
This commit is contained in:
parent
701c5d90cd
commit
4c4c6ba545
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@ from app.settings import powerbars, groups
|
|||
def check_input_error(tn):
|
||||
tn.write("/\r\n".encode('ascii'))
|
||||
for _ in range(3):
|
||||
print(f"Checking for input error attempt ${_}")
|
||||
print(f"Checking for input error attempt {_}")
|
||||
output = tn.read_until(b"Input error", timeout=3).decode('ascii')
|
||||
if "Input error" in output:
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue