Commit f6d36f83 authored by hichbra's avatar hichbra

fix port

parent b1ed055b
......@@ -18,7 +18,7 @@ file = port+"/"+datetime.now().strftime("%d-%m-%Y_%H.%M.%S")
#debut = datetime.now()
delai = datetime.now()
output_file = open(file, "w+")
output_file.write("id:ttyACM0\n")
output_file.write("id:"+port+"\n")
ser = serial.Serial(serial_port, baud_rate)
while True:
try:
......@@ -37,7 +37,7 @@ while True:
subprocess.Popen(["python", "processusEnvoiBluetooth.py", fichierAEnvoyer])
delai = datetime.now()
output_file = open(file, "w+")
output_file.write("id:ttyACM0\n")
output_file.write("id:"+port+"\n")
else:
print(((datetime.now()-delai).seconds)/60)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment