Index: /trunk/FACT++/src/ConnectionUSB.cc
===================================================================
--- /trunk/FACT++/src/ConnectionUSB.cc	(revision 12231)
+++ /trunk/FACT++/src/ConnectionUSB.cc	(revision 12232)
@@ -18,12 +18,14 @@
 using ba::serial_port_base;
 
+//#define DEBUG_TX
+//#define DEBUG
+
+#ifdef DEBUG
 #include <fstream>
 #include <iomanip>
 #include "Time.h"
-#define DEBUG
-
-//#define DEBUG_TX
-
-    // -------- Abbreviations for starting async tasks ---------
+#endif
+
+// -------- Abbreviations for starting async tasks ---------
 
 int ConnectionUSB::Write(const Time &t, const string &txt, int qos)
@@ -101,4 +103,13 @@
     fOutQueue.clear();
 
+#ifdef DEBUG
+    ofstream fout1("transmitted.txt", ios::app);
+    ofstream fout2("received.txt", ios::app);
+    ofstream fout3("send.txt", ios::app);
+    fout1 << Time() << ": ---" << endl;
+    fout2 << Time() << ": ---" << endl;
+    fout3 << Time() << ": ---" << endl;
+#endif
+
     if (!restart || IsConnecting())
         return;
@@ -181,5 +192,5 @@
 
 #ifdef DEBUG
-    ofstream fout("tansmitted.txt", ios::app);
+    ofstream fout("transmitted.txt", ios::app);
     fout << Time() << ": ";
     for (unsigned int i=0; i<fOutQueue.front().size(); i++)
