optimierung

This commit is contained in:
2024-07-18 10:32:00 +02:00
parent 9dbe3e1f5d
commit 7456e7f02a

View File

@@ -448,7 +448,7 @@ class ArduinoGUI:
if self.ser:
if self.ser.in_waiting:
try:
command = self.ser.readline().decode(errors='ignore').strip()
command = self.ser.read(1).decode(errors='ignore').strip()
print(command)
if command == 'a':
message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n"