- Timestamp:
- 10/23/11 13:33:16 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ConnectionUSB.cc
r12232 r12236 221 221 // It is important that when SendMessageImp is called, or to be more 222 222 // precise boost::bind is called, teh data is copied! 223 void ConnectionUSB::SendMessageImp(const vector< char> msg)223 void ConnectionUSB::SendMessageImp(const vector<uint8_t> msg) 224 224 { 225 225 /* … … 256 256 void ConnectionUSB::PostMessage(const void *ptr, size_t max) 257 257 { 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); 260 260 261 261 get_io_service().post(boost::bind(&ConnectionUSB::SendMessageImp, this, msg)); -
trunk/FACT++/src/ConnectionUSB.h
r12215 r12236 36 36 private: 37 37 boost::asio::deadline_timer fOutTimeout; 38 std::deque<std::vector< char>> fOutQueue;38 std::deque<std::vector<uint8_t>> fOutQueue; 39 39 40 40 ConnectionStatus_t fConnectionStatus; … … 78 78 79 79 // ------------------------ write -------------------------- 80 void SendMessageImp(const std::vector< char> msg);80 void SendMessageImp(const std::vector<uint8_t> msg); 81 81 void PostMessage(const void *msg, size_t s=0); 82 82 void PostMessage(const std::string &cmd, size_t s=-1); -
trunk/FACT++/src/biasctrl.cc
r12233 r12236 302 302 fout << Time() << ": "; 303 303 for (unsigned int i=0; i<bytes_received; i++) 304 fout << hex << setfill('0') << setw(2) << (uint 32_t)buf[i];304 fout << hex << setfill('0') << setw(2) << (uint16_t)buf[i]; 305 305 fout << endl; 306 306 #endif
Note:
See TracChangeset
for help on using the changeset viewer.