← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
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 722518e..cd52dfd 100755
--- a/main.py
+++ b/main.py
@@ -211,7 +211,7 @@ if bto.find("Connected") != -1:
if backward == False:
NANO.write(b"Stop\n")
- if (a > 155 and a < 170) or (a > 190 and a < 205):
+ if ((a > 155 and a < 170) or (a > 190 and a < 205)) and d < 300:
print("Something behind!")
backward = False
if forward == False: