Skip to content
Snippets Groups Projects
Commit aafeb5ac authored by hichbra's avatar hichbra
Browse files

fix name

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