Changeset 12232 for trunk/FACT++/src


Ignore:
Timestamp:
10/23/11 12:40:30 (13 years ago)
Author:
tbretz
Message:
Added some more DEBUG stuff.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ConnectionUSB.cc

    r12231 r12232  
    1818using ba::serial_port_base;
    1919
     20//#define DEBUG_TX
     21//#define DEBUG
     22
     23#ifdef DEBUG
    2024#include <fstream>
    2125#include <iomanip>
    2226#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 ---------
    2830
    2931int ConnectionUSB::Write(const Time &t, const string &txt, int qos)
     
    101103    fOutQueue.clear();
    102104
     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
    103114    if (!restart || IsConnecting())
    104115        return;
     
    181192
    182193#ifdef DEBUG
    183     ofstream fout("tansmitted.txt", ios::app);
     194    ofstream fout("transmitted.txt", ios::app);
    184195    fout << Time() << ": ";
    185196    for (unsigned int i=0; i<fOutQueue.front().size(); i++)
Note: See TracChangeset for help on using the changeset viewer.