mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
should work properly
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "slsDetectorData.h"
|
#include "slsDetectorData.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <stdlib.h> // exit()
|
||||||
template <class dataType>
|
template <class dataType>
|
||||||
class slsReceiverData : public slsDetectorData<dataType> {
|
class slsReceiverData : public slsDetectorData<dataType> {
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ public:
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
//cprintf(BG_RED, "Too many packets for this frame! fnum:%d, pnum:%d np:%d\n",fnum,pnum,np);
|
//cprintf(BG_RED, "Too many packets for this frame! fnum:%d, pnum:%d np:%d\n",fnum,pnum,np);
|
||||||
cout << "Too many packets for this frame! "<< fnum << " " << pnum << endl;
|
cout << "Too many packets for this frame! "<< fnum << " " << pnum << endl;cprintf(BG_RED,"Exiting\n");exit(-1);
|
||||||
retval=NULL;
|
retval=NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ public:
|
|||||||
if (np<nPackets) {
|
if (np<nPackets) {
|
||||||
if (np>0){
|
if (np>0){
|
||||||
//cprintf(BG_RED, "Too few packets for this frame! fnum:%d, pnum:%d np:%d\n",fnum,pnum,np);
|
//cprintf(BG_RED, "Too few packets for this frame! fnum:%d, pnum:%d np:%d\n",fnum,pnum,np);
|
||||||
cout << "Too few packets for this frame! "<< fnum << " " << pnum << endl;
|
cout << "Too few packets for this frame! "<< fnum << " " << pnum << " " << np <<endl;cprintf(BG_RED,"Exiting\n");exit(-1);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user