should work properly

This commit is contained in:
Dhanya Maliakal 2015-08-21 10:05:29 +02:00
parent 0800e07315
commit e732dbbeab

View File

@ -3,7 +3,7 @@
#include "slsDetectorData.h"
#include <cstring>
#include <stdlib.h> // exit()
template <class dataType>
class slsReceiverData : public slsDetectorData<dataType> {
@ -107,7 +107,7 @@ public:
break;
} else {
//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;
}
}
@ -115,7 +115,7 @@ public:
if (np<nPackets) {
if (np>0){
//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);
}
}