mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-09 03:20:42 +02:00
small change to ensure no crash at wrong frame read
This commit is contained in:
parent
8aed690113
commit
71cd046bed
@ -2226,7 +2226,9 @@ int UDPStandardImplementation::startWriting(){
|
|||||||
#endif
|
#endif
|
||||||
//update frame number
|
//update frame number
|
||||||
if(!((uint32_t)(*( (uint64_t*) wbuf_footer)))){
|
if(!((uint32_t)(*( (uint64_t*) wbuf_footer)))){
|
||||||
cprintf(BG_RED,"**VERY WEIRD frame numbers for fifo %d: %d\n",i,(uint32_t)(*( (uint64_t*) wbuf_footer)));
|
cprintf(BG_RED,"%d VERY WEIRD frame number=%d and popready:%d\n",
|
||||||
|
i,(uint32_t)(*( (uint64_t*) wbuf_footer)),popready[i]);
|
||||||
|
popready[i]=true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
tempframenum[i] =(uint32_t)(*( (uint64_t*) wbuf_footer));
|
tempframenum[i] =(uint32_t)(*( (uint64_t*) wbuf_footer));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user