From aafeb5ac01df65be7395b090f57bd33391ab529a Mon Sep 17 00:00:00 2001
From: hichbra <hicham.brahimi@laposte.net>
Date: Fri, 1 Feb 2019 16:27:14 +0100
Subject: [PATCH] fix name

---
 Raspberry/Raspberry_central/RecuperationValeur.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Raspberry/Raspberry_central/RecuperationValeur.py b/Raspberry/Raspberry_central/RecuperationValeur.py
index 2591de9..37f5fe0 100644
--- a/Raspberry/Raspberry_central/RecuperationValeur.py
+++ b/Raspberry/Raspberry_central/RecuperationValeur.py
@@ -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");
-- 
GitLab