Tested magnetometer calibration method.

This commit is contained in:
2021-08-24 16:46:20 +02:00
parent bcadc3f273
commit 4bb1bad731
3 changed files with 37 additions and 17 deletions
+6 -1
View File
@@ -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). """