Optimierung der LSP Schnittstelle

This commit is contained in:
2024-07-22 11:54:12 +02:00
parent b1ceb7c913
commit f8d788d92e

View File

@@ -449,7 +449,7 @@ class ArduinoGUI:
while self.ser.in_waiting: while self.ser.in_waiting:
pass pass
print(command) 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" message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n"
self.ser.write(message.encode()) self.ser.write(message.encode())
if command[0] == 'w': if command[0] == 'w':