diff --git a/slsDetectorSoftware/slsDetectorServer/slsDetectorFunctionList.h b/slsDetectorSoftware/slsDetectorServer/slsDetectorFunctionList.h index 52d9c45cb..2841ef8ec 100644 --- a/slsDetectorSoftware/slsDetectorServer/slsDetectorFunctionList.h +++ b/slsDetectorSoftware/slsDetectorServer/slsDetectorFunctionList.h @@ -11,24 +11,6 @@ - -/* -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -*/ - /**************************************************** This functions are used by the slsDetectroServer_funcs interface. Here are the definitions, but the actual implementation should be done for each single detector. @@ -38,9 +20,7 @@ Here are the definitions, but the actual implementation should be done for each -int mapCSP0(void); -int initializeDetectorStructure(); -int setupDetector(); +int initDetector(); int setNMod(int nm, enum dimension dim); int getNModBoard(enum dimension arg); diff --git a/slsDetectorSoftware/slsDetectorServer/slsDetectorServer_funcs.c b/slsDetectorSoftware/slsDetectorServer/slsDetectorServer_funcs.c index 9eba14edf..f43cd7e92 100755 --- a/slsDetectorSoftware/slsDetectorServer/slsDetectorServer_funcs.c +++ b/slsDetectorSoftware/slsDetectorServer/slsDetectorServer_funcs.c @@ -40,7 +40,8 @@ const enum detectorType myDetectorType=GENERIC; char mess[1000]; char *dataretval=NULL; int dataret; -extern int dataBytes; +//extern +int dataBytes = 10; @@ -48,15 +49,11 @@ extern int dataBytes; int init_detector(int b) { #ifdef VIRTUAL printf("This is a VIRTUAL detector\n"); -#endif -#ifdef SLS_DETECTOR_FUNCTION_LIST - mapCSP0(); #endif //only for control server if(b){ #ifdef SLS_DETECTOR_FUNCTION_LIST - initializeDetectorStructure(); - setupDetector(); + initDetector(); #endif } strcpy(mess,"dummy message"); @@ -2974,7 +2971,11 @@ int read_counter_block(int file_des) { int n; int startACQ; //char *retval=NULL; +#ifdef GOTTHARDD char CounterVals[NCHAN*NCHIP]; +#else + char CounterVals[dataBytes]; +#endif sprintf(mess,"Read counter block failed\n");