mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 08:38:00 +02:00
rx: fifodepth error will set fifodepth to 0
This commit is contained in:
@ -828,6 +828,7 @@ int UDPStandardImplementation::SetupFifoStructure() {
|
||||
for (std::vector<Fifo*>::const_iterator it = fifo.begin(); it != fifo.end(); ++it)
|
||||
delete(*it);
|
||||
fifo.clear();
|
||||
fifoDepth = 0;
|
||||
return FAIL;
|
||||
}
|
||||
//set the listener & dataprocessor threads to point to the right fifo
|
||||
|
@ -1906,14 +1906,14 @@ int slsReceiverTCPIPInterface::set_fifo_depth() {
|
||||
else {
|
||||
ret = receiverBase->setFifoDepth(value);
|
||||
if (ret == FAIL) {
|
||||
strcpy(mess,"Could not set fifo depth");
|
||||
strcpy(mess,"Could not set fifo depth\n");
|
||||
FILE_LOG(logERROR) << mess;
|
||||
}
|
||||
}
|
||||
}
|
||||
//get
|
||||
retval = receiverBase->getFifoDepth();
|
||||
if(value >= 0 && retval != value) {
|
||||
if(ret == OK && value >= 0 && retval != value) {
|
||||
ret = FAIL;
|
||||
strcpy(mess, "Could not set fifo depth\n");
|
||||
FILE_LOG(logERROR) << mess;
|
||||
|
Reference in New Issue
Block a user