Commit aafeb5ac authored by hichbra's avatar hichbra

fix name

parent f6d36f83
......@@ -5,7 +5,8 @@ import sys
import subprocess
import os
port = "ttyACM0"
port = sys.argv[1] #"ttyACM0"
try:
os.makedirs(port)
except OSError:
......@@ -30,7 +31,7 @@ while True:
print(s);
output_file.write(s);
if ((datetime.now()-delai).seconds)/60 >= 60:
print("PROCESS")
print("PROCESS "+port)
output_file.close()
fichierAEnvoyer = file
file = port+"/"+datetime.now().strftime("%d-%m-%Y_%H.%M.%S");
......
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