Index: /trunk/FACT++/src/fad.cc
===================================================================
--- /trunk/FACT++/src/fad.cc	(revision 12047)
+++ /trunk/FACT++/src/fad.cc	(revision 12048)
@@ -98,11 +98,16 @@
 
     // Callback when writing was successfull or failed
+#ifdef DEBUG_TX
     void HandleSentData(const boost::system::error_code& error, size_t bytes_transferred)
     {
-#ifdef DEBUG_TX
         cout << "Data sent[" << fBoardId << "]: (transmitted=" << bytes_transferred << ") rc=" << error.message() << " (" << error << ")" << endl;
+        fOutQueue.pop_front();
+    }
+#else
+    void HandleSentData(const boost::system::error_code&, size_t)
+    {
+        fOutQueue.pop_front();
+    }
 #endif
-        fOutQueue.pop_front();
-    }
 
     vector<uint16_t> fBufCommand;
