Optimierung der LSP Schnittstelle
This commit is contained in:
2
main.py
2
main.py
@@ -444,7 +444,7 @@ class ArduinoGUI:
|
|||||||
if self.ser:
|
if self.ser:
|
||||||
if self.ser.in_waiting:
|
if self.ser.in_waiting:
|
||||||
try:
|
try:
|
||||||
command = self.ser.read_all().decode(errors='ignore').strip()
|
command = self.ser.readall().decode(errors='ignore').strip()
|
||||||
print(command)
|
print(command)
|
||||||
if command[0] == 'a':
|
if command[0] == '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"
|
||||||
|
|||||||
Reference in New Issue
Block a user