optimierung
This commit is contained in:
1 parent
be2a4a8c24
commit
48d347fb06
1 file changed
+1
-1
@@ -450,7 +450,7 @@ class ArduinoGUI:
|
||||
if self.ser:
|
||||
if self.ser.in_waiting:
|
||||
try:
|
||||
command = self.ser.readline().decode(errors='ignore').strip()
|
||||
command = self.ser.read(2).decode(errors='ignore').strip()
|
||||
print(command)
|
||||
if command == 'a':
|
||||
message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n"
|
||||
|
||||
Reference in new issue
Block a user