Index: /tools/ListenToArduino/ListenToArduino.cc
===================================================================
--- /tools/ListenToArduino/ListenToArduino.cc	(revision 152)
+++ /tools/ListenToArduino/ListenToArduino.cc	(revision 153)
@@ -35,6 +35,6 @@
 	
 
-	FILE * openOutfile(char *path);
-	static int poll_stdin_time(int microsekunden) ;
+	FILE * openOutfile(char *);
+	static int poll_stdin_time(int);
 
         volatile int STOP=FALSE; 
@@ -196,5 +196,5 @@
 	fclose(outfile);
         
-	if (poll_stdin_time(1500000)==1) {
+	if (poll_stdin_time(atoi(Srv.GetConfig("Period", "10")))==1) {
 		STOP=TRUE;
 	}
@@ -267,5 +267,5 @@
 }
 
-static int poll_stdin_time(int microsekunden) {
+static int poll_stdin_time(int sekunden) {
 	struct timeval timeout;
 	fd_set read_fds;
@@ -275,6 +275,6 @@
 	FD_ZERO(&read_fds);
 	FD_SET(STDIN_FILENO, &read_fds);
-	timeout.tv_sec = 0;
-	timeout.tv_usec =microsekunden;
+	timeout.tv_sec = sekunden;
+	timeout.tv_usec = 0;
 	stdin_status = select(STDIN_FILENO+1, &read_fds, NULL, NULL, &timeout);
 	if (stdin_status == 1 ) {
