feature_lsp_com #8

Merged
musabe24 merged 17 commits from feature_lsp_com into main 2024-07-18 12:26:59 +02:00
Showing only changes of commit 48d347fb06 - Show all commits

View File

@@ -450,7 +450,7 @@ class ArduinoGUI:
if self.ser: if self.ser:
if self.ser.in_waiting: if self.ser.in_waiting:
try: try:
command = self.ser.readline().decode(errors='ignore').strip() command = self.ser.read(2).decode(errors='ignore').strip()
print(command) print(command)
if command == 'a': if command == '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"