Changeset 12236 for trunk


Ignore:
Timestamp:
10/23/11 13:33:16 (13 years ago)
Author:
tbretz
Message:
Changed signed char to unsigned in output queue.
Location:
trunk/FACT++/src
Files:
3 edited

Legend:

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

    r12232 r12236  
    221221// It is important that when SendMessageImp is called, or to be more
    222222// precise boost::bind is called, teh data is copied!
    223 void ConnectionUSB::SendMessageImp(const vector<char> msg)
     223void ConnectionUSB::SendMessageImp(const vector<uint8_t> msg)
    224224{
    225225    /*
     
    256256void ConnectionUSB::PostMessage(const void *ptr, size_t max)
    257257{
    258     const vector<char> msg(reinterpret_cast<const char*>(ptr),
    259                            reinterpret_cast<const char*>(ptr)+max);
     258    const vector<uint8_t> msg(reinterpret_cast<const uint8_t*>(ptr),
     259                              reinterpret_cast<const uint8_t*>(ptr)+max);
    260260
    261261    get_io_service().post(boost::bind(&ConnectionUSB::SendMessageImp, this, msg));
  • trunk/FACT++/src/ConnectionUSB.h

    r12215 r12236  
    3636private:
    3737    boost::asio::deadline_timer   fOutTimeout;
    38     std::deque<std::vector<char>> fOutQueue;
     38    std::deque<std::vector<uint8_t>> fOutQueue;
    3939
    4040    ConnectionStatus_t fConnectionStatus;
     
    7878
    7979    // ------------------------ write --------------------------
    80     void SendMessageImp(const std::vector<char> msg);
     80    void SendMessageImp(const std::vector<uint8_t> msg);
    8181    void PostMessage(const void *msg, size_t s=0);
    8282    void PostMessage(const std::string &cmd, size_t s=-1);
  • trunk/FACT++/src/biasctrl.cc

    r12233 r12236  
    302302    fout << Time() << ": ";
    303303    for (unsigned int i=0; i<bytes_received; i++)
    304         fout << hex << setfill('0') << setw(2) << (uint32_t)buf[i];
     304        fout << hex << setfill('0') << setw(2) << (uint16_t)buf[i];
    305305    fout << endl;
    306306#endif
Note: See TracChangeset for help on using the changeset viewer.