← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/bt.py
diff options
context:
space:
mode:
Diffstat (limited to 'bt.py')
-rwxr-xr-xbt.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/bt.py b/bt.py
index 98fc45e..a341f22 100755
--- a/bt.py
+++ b/bt.py
@@ -41,15 +41,15 @@ while read != "1000":
# Send DWM data
if read == "10":
sleep(1)
- with open("position_mean.txt", "r") as f:
- for line in f:
- line = line.strip("\n")
- x, y = line.split(",")
- x = int(x)
- y = int(y)
- recv_sock.send(f"{x}, {y}, ".encode())
- # message = message + f"{x}, {y}, "
- f.close()
+ with open("position_mean.txt", "r") as f:
+ for line in f:
+ line = line.strip("\n")
+ x, y = line.split(",")
+ x = int(x)
+ y = int(y)
+ recv_sock.send(f"{x}, {y}, ".encode())
+ # message = message + f"{x}, {y}, "
+ f.close()
else:
with open("position.txt", "r") as f:
for line in f: