update 更新界面显示

This commit is contained in:
FrankCV2048
2024-09-12 23:36:01 +08:00
parent 176a7b38ce
commit 20feaecbbe
9 changed files with 2654 additions and 1473 deletions

View File

@ -29,7 +29,7 @@ class TCPClient:
def run(self):
while True:
time.sleep(0.2)
self.connected = (self.error_count == 0)
self.connected = (self.error_count > 3)
try:
if (self.send_Status() and self.send_Command()):
self.error_count = 0