update 更新界面显示
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user