Changeset 12232 for trunk/FACT++/src
- Timestamp:
- 10/23/11 12:40:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ConnectionUSB.cc
r12231 r12232 18 18 using ba::serial_port_base; 19 19 20 //#define DEBUG_TX 21 //#define DEBUG 22 23 #ifdef DEBUG 20 24 #include <fstream> 21 25 #include <iomanip> 22 26 #include "Time.h" 23 #define DEBUG 24 25 //#define DEBUG_TX 26 27 // -------- Abbreviations for starting async tasks --------- 27 #endif 28 29 // -------- Abbreviations for starting async tasks --------- 28 30 29 31 int ConnectionUSB::Write(const Time &t, const string &txt, int qos) … … 101 103 fOutQueue.clear(); 102 104 105 #ifdef DEBUG 106 ofstream fout1("transmitted.txt", ios::app); 107 ofstream fout2("received.txt", ios::app); 108 ofstream fout3("send.txt", ios::app); 109 fout1 << Time() << ": ---" << endl; 110 fout2 << Time() << ": ---" << endl; 111 fout3 << Time() << ": ---" << endl; 112 #endif 113 103 114 if (!restart || IsConnecting()) 104 115 return; … … 181 192 182 193 #ifdef DEBUG 183 ofstream fout("t ansmitted.txt", ios::app);194 ofstream fout("transmitted.txt", ios::app); 184 195 fout << Time() << ": "; 185 196 for (unsigned int i=0; i<fOutQueue.front().size(); i++)
Note:
See TracChangeset
for help on using the changeset viewer.