mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
return even if eiger got only 16 bytes of a packet
This commit is contained in:
parent
2eaefaba3a
commit
4770d74c12
@ -2019,7 +2019,7 @@ int i;
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
//push the last buffer into fifo
|
//push the last buffer into fifo
|
||||||
if(rc > 0){
|
if((myDetectorType != EIGER) && (rc > 0)){ //for eiger throw away incomplete frames
|
||||||
pc = (rc/onePacketSize);
|
pc = (rc/onePacketSize);
|
||||||
#ifdef VERYDEBUG
|
#ifdef VERYDEBUG
|
||||||
cout << ithread << " *** last packetcount:" << pc << endl;
|
cout << ithread << " *** last packetcount:" << pc << endl;
|
||||||
@ -2030,7 +2030,8 @@ int i;
|
|||||||
#ifdef VERYDEBUG
|
#ifdef VERYDEBUG
|
||||||
cout << ithread << " *** last lbuf1:" << (void*)buffer[ithread] << endl;
|
cout << ithread << " *** last lbuf1:" << (void*)buffer[ithread] << endl;
|
||||||
#endif
|
#endif
|
||||||
}
|
}else
|
||||||
|
fifoFree[ithread]->push(buffer[ithread]);//for all detectors too. why was this not there? for rc=0?
|
||||||
|
|
||||||
|
|
||||||
//push dummy buffer to all writer threads
|
//push dummy buffer to all writer threads
|
||||||
|
Loading…
x
Reference in New Issue
Block a user