Changeset 12229 for trunk/FACT++


Ignore:
Timestamp:
10/22/11 19:25:48 (13 years ago)
Author:
tbretz
Message:
Added some debug out code.
File:
1 edited

Legend:

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

    r12213 r12229  
    175175    }
    176176
     177#ifdef DEBUG
     178    ofstream fout("tansmitted.txt", ios::app);
     179    fout << Time() << ": ";
     180    for (int i=0; i<fOutQueue.front().size(); i++)
     181        fout << hex << setfill('0') << setw(2) << (uint32_t)fOutQueue.front()[i];
     182    fout << endl;
     183#endif
     184
    177185    HandleTransmittedData(n);
    178186
     
    216224    if (!first_message_in_queue)
    217225        return;
     226
     227#ifdef DEBUG
     228    ofstream fout("send.txt", ios::app);
     229    fout << Time() << ": ";
     230    for (int i=0; i<msg.size(); i++)
     231        fout << hex << setfill('0') << setw(2) << (uint32_t)msg[i];
     232    fout << endl;
     233#endif
    218234
    219235    // AsyncWrite + Deadline
Note: See TracChangeset for help on using the changeset viewer.