feature_lsp_com #9

Merged
musabe24 merged 12 commits from feature_lsp_com into main 2024-07-22 12:15:27 +02:00
Showing only changes of commit 451cd9bc68 - Show all commits

View File

@@ -445,11 +445,11 @@ class ArduinoGUI:
if self.ser.in_waiting:
try:
command = ""
command = self.ser.read_all().decode(errors='ignore').strip()
command = self.ser.read().decode(errors='ignore').strip()
while self.ser.in_waiting:
pass
print(command)
if command[1] == 'a':
if command[0] == 'a':
message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n"
self.ser.write(message.encode())
if command[0] == 'w':