Changeset 12230 for trunk/FACT++/src
- Timestamp:
- 10/22/11 19:26:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/biasctrl.cc
r12222 r12230 266 266 { 267 267 ostringstream out; 268 out << "Talked to board " << id/kNumChannelsPerBoard << ", but got answer from board " << board << " .";268 out << "Talked to board " << id/kNumChannelsPerBoard << ", but got answer from board " << board << " (fSendCounter=" << fSendCounter << ")"; 269 269 Error(out); 270 270 return false; … … 296 296 void HandleReceivedData(const vector<uint8_t> &buf, size_t bytes_received, int command, int send_counter) 297 297 { 298 #ifdef DEBUG 299 ofstream fout("received.txt", ios::app); 300 fout << Time() << ": "; 301 for (int i=0; i<bytes_received; i++) 302 fout << hex << setfill('0') << setw(2) << (uint32_t)buf[i]; 303 fout << endl; 304 #endif 305 298 306 // Now print the received message if requested by the user 299 307 if (fIsVerbose/* && command!=kUpdate*/) … … 432 440 { 433 441 if (err==ba::error::eof) 434 Warn("Connection closed by remote host (BIAS)."); 442 { 443 ostringstream msg; 444 msg << "Connection closed by remote host (BIAS, fSendCounter=" << fSendCounter << ")"; 445 Warn(msg); 446 } 435 447 436 448 // 107: Transport endpoint is not connected (bs::error_code(107, bs::system_category))
Note:
See TracChangeset
for help on using the changeset viewer.