← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/DWM.py
diff options
context:
space:
mode:
authorEdvin <[email protected]>2025-04-25 08:42:55 +0200
committerEdvin <[email protected]>2025-04-25 08:42:55 +0200
commit973d2c26abde257c842548c4af0ff4c3a3a8162c (patch)
tree59743f804298ce56b65b366297ca778b29186730 /DWM.py
parentbd5d73c772d0236b3ac047d7338dc66685db3985 (diff)
Implemented collected data transfer, graphical control interface and improved README
Diffstat (limited to 'DWM.py')
-rwxr-xr-x[-rw-r--r--]DWM.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/DWM.py b/DWM.py
index 86cb07e..ccee6a7 100644..100755
--- a/DWM.py
+++ b/DWM.py
@@ -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()