diff options
| author | Edvin <[email protected]> | 2025-04-25 08:42:55 +0200 |
|---|---|---|
| committer | Edvin <[email protected]> | 2025-04-25 08:42:55 +0200 |
| commit | 973d2c26abde257c842548c4af0ff4c3a3a8162c (patch) | |
| tree | 59743f804298ce56b65b366297ca778b29186730 /DWM.py | |
| parent | bd5d73c772d0236b3ac047d7338dc66685db3985 (diff) | |
Implemented collected data transfer, graphical control interface and improved README
Diffstat (limited to 'DWM.py')
| -rwxr-xr-x[-rw-r--r--] | DWM.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,12 +45,12 @@ with serial.Serial('/dev/ttyACM0', 115200, timeout = 1) as s: sleep(0.1) s.write(b"\r") - str = f"{s.readline().decode('utf-8').strip('\n')}" + str = s.readline().decode('utf-8').strip('\n') if "apg: x:" in str: str = str.replace("apg: ", "") print(str) - with open("posititon.txt", "w") as f: + with open("position.txt", "w") as f: f.write(str + '\n') f.close() |
