mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-21 11:50:41 +02:00
should work properly
This commit is contained in:
parent
a29da27a42
commit
4813d7b598
@ -1654,7 +1654,12 @@ void UDPStandardImplementation::startReadout(){
|
||||
/********************************************/
|
||||
//usleep(10000000);
|
||||
//usleep(2000000);
|
||||
|
||||
int prev = totalPacketsCaught;
|
||||
usleep(50000);
|
||||
while(prev!=totalPacketsCaught){
|
||||
prev=totalPacketsCaught;
|
||||
usleep(50000);
|
||||
}
|
||||
pthread_mutex_lock(&status_mutex);
|
||||
status = TRANSMITTING;
|
||||
pthread_mutex_unlock(&status_mutex);
|
||||
@ -2014,9 +2019,9 @@ int UDPStandardImplementation::startWriting(){
|
||||
cprintf(RED,"blank frame not detected at %d: 0x%x\n",i,(*(uint8_t*)(((eiger_packet_header *)((char*)(blankframe[i])))->num3)) );
|
||||
exit(-1);
|
||||
}
|
||||
//#ifdef FIFO_DEBUG
|
||||
#ifdef FIFO_DEBUG
|
||||
cprintf(GREEN,"packet %d blank frame 0x%x\n",i,(void*)(blankframe[i]));
|
||||
//#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user