forked from zietzm/Helmholtz_Test_Bench
Tested magnetometer calibration method.
This commit is contained in:
@@ -98,8 +98,13 @@ class ClientConnectionThread(Thread):
|
||||
msg = ''
|
||||
else:
|
||||
msg += char
|
||||
except ConnectionResetError:
|
||||
except ConnectionResetError as e:
|
||||
ui_print("A connection was closed by the client.")
|
||||
self.client_socket.close()
|
||||
if self._cage_dev:
|
||||
self._cage_dev.close()
|
||||
g.MAGNETOMETER.connected = False
|
||||
return
|
||||
|
||||
def handle_msg(self, message):
|
||||
""" Executes command logic and returns string response (for client). """
|
||||
|
||||
Reference in New Issue
Block a user