← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorEdvin <[email protected]>2025-05-12 14:13:51 +0200
committerEdvin <[email protected]>2025-05-12 14:13:51 +0200
commit9d6019076927017b90f04c84e3ebbe9907b64613 (patch)
tree4d59492da60f278f4978cbeceb77679ea1b7c128 /main.py
parent5218e00d957035f1cd2b7d883795b0acb7ade71b (diff)
Made sure status angle is an int and made goal pairing better
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index f2a84d1..75bf9ed 100755
--- a/main.py
+++ b/main.py
@@ -291,7 +291,7 @@ if bto.find("Connected") != -1:
xstatus = str(x).zfill(4)
ystatus = str(y).zfill(4)
- dirstatus = str(curDir).zfill(3)
+ dirstatus = str(int(curDir)).zfill(3)
if iteration > delay:
NANO.write(f"Current status {xstatus} {ystatus} {dirstatus}\n".encode())
iteration = 0