← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/DWM.py
diff options
context:
space:
mode:
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()