Changeset 12231


Ignore:
Timestamp:
10/23/11 12:39:26 (13 years ago)
Author:
tbretz
Message:
Fixed the new DEBUG stuff.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r12229 r12231  
    1717
    1818using ba::serial_port_base;
     19
     20#include <fstream>
     21#include <iomanip>
     22#include "Time.h"
     23#define DEBUG
    1924
    2025//#define DEBUG_TX
     
    178183    ofstream fout("tansmitted.txt", ios::app);
    179184    fout << Time() << ": ";
    180     for (int i=0; i<fOutQueue.front().size(); i++)
     185    for (unsigned int i=0; i<fOutQueue.front().size(); i++)
    181186        fout << hex << setfill('0') << setw(2) << (uint32_t)fOutQueue.front()[i];
    182187    fout << endl;
     
    228233    ofstream fout("send.txt", ios::app);
    229234    fout << Time() << ": ";
    230     for (int i=0; i<msg.size(); i++)
     235    for (unsigned int i=0; i<msg.size(); i++)
    231236        fout << hex << setfill('0') << setw(2) << (uint32_t)msg[i];
    232237    fout << endl;
  • trunk/FACT++/src/biasctrl.cc

    r12230 r12231  
    2626using namespace BIAS;
    2727
     28#define DEBUG
     29
    2830// ------------------------------------------------------------------------
    2931
     
    299301    ofstream fout("received.txt", ios::app);
    300302    fout << Time() << ": ";
    301     for (int i=0; i<bytes_received; i++)
     303    for (unsigned int i=0; i<bytes_received; i++)
    302304        fout << hex << setfill('0') << setw(2) << (uint32_t)buf[i];
    303305    fout << endl;
Note: See TracChangeset for help on using the changeset viewer.