From 8269b5112f15abc539602666ffa393f585dbb396 Mon Sep 17 00:00:00 2001 From: Musab Erdem Date: Mon, 22 Jul 2024 11:43:21 +0200 Subject: [PATCH] Optimierung der LSP Schnittstelle --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index eb392f6..ceb1cbd 100644 --- a/main.py +++ b/main.py @@ -453,8 +453,7 @@ class ArduinoGUI: self.tare_angle() if command(0) == 'u': time.sleep(5) - string = self.ser.read_until(b"u") - outCommand = F"u{string}u\n" + outCommand = F"{command}\n" self.arduino.write(outCommand.encode()) time.sleep(0.1)