← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmain.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.py b/main.py
index 054e3c7..429c05f 100755
--- a/main.py
+++ b/main.py
@@ -118,7 +118,7 @@ if bto.find("Connected") != -1:
NANO.write(b"Backward\n")
elif bto == "33":
desDir = desDir - 90
- if desDir < 360:
+ if desDir < 0:
desDir = desDir + 360
curDir = desDir
@@ -138,7 +138,7 @@ if bto.find("Connected") != -1:
NANO.write(b"Stop\n")
elif bto == "55":
desDir = desDir - 45
- if desDir < 360:
+ if desDir < 0:
desDir = desDir + 360
curDir = desDir
@@ -148,7 +148,7 @@ if bto.find("Connected") != -1:
NANO.write(b"Stop\n")
elif bto == "66":
desDir = desDir + 45
- if desDir >= 0:
+ if desDir >= 360:
desDir = desDir - 360
curDir = desDir