From 7456e7f02a869f05432fca7a7ccab4736d0a2c40 Mon Sep 17 00:00:00 2001 From: Musab Erdem Date: Thu, 18 Jul 2024 10:32:00 +0200 Subject: [PATCH] optimierung --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f24834c..4ac2446 100644 --- a/main.py +++ b/main.py @@ -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"