diff --git a/main.py b/main.py index 0931d62..d2ddb2d 100644 --- a/main.py +++ b/main.py @@ -449,7 +449,9 @@ class ArduinoGUI: if command == 'a': message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n" self.ser.write(message.encode()) - time.sleep(0.5) + while self.ser.out_waiting: + pass + self.ser.read_all() except Exception as e: print(e) #self.ser.write(b'Hallo\n')