diff --git a/main.py b/main.py index d8d4f74..9de64f2 100644 --- a/main.py +++ b/main.py @@ -449,7 +449,7 @@ class ArduinoGUI: while self.ser.in_waiting: pass print(command) - if command[0] == 'a': + if command[1] == 'a': message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n" self.ser.write(message.encode()) if command[0] == 'w':