diff --git a/slsDetectorSoftware/slsReceiver/UHRIXCallback.cpp b/slsDetectorSoftware/slsReceiver/UHRIXCallback.cpp index e33a6d4d0..7813e675d 100644 --- a/slsDetectorSoftware/slsReceiver/UHRIXCallback.cpp +++ b/slsDetectorSoftware/slsReceiver/UHRIXCallback.cpp @@ -3,16 +3,23 @@ int UHRIXCallbackDataFunc(char* d, int np, FILE* fd, void* p){ + int i; + //#ifdef VERBOSE - printf("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU Receiver Data received \n"); + //printf("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU Receiver Data received \n"); if (d==NULL) printf("no data received\n"); else{ - printf("received %d bytes of data\n",np); - printf("index:%d\n",(int)(*(int*)d)); + // printf("received %d bytes of data\n",np); + // printf("index:%d\n",(int)(*(int*)d)); + for ( i=0; i<(np-4)/2; i++) + { + d[i*2+4]=i; + d[i*2+5]=0; + } } - printf("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU Finished \n"); + //printf("UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU Finished \n"); //#endif return 0; } diff --git a/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp b/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp index 9ba4537b8..a2d1ea8c5 100644 --- a/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp +++ b/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp @@ -287,7 +287,7 @@ int slsReceiverFunctionList::startListening(){ // very end of the program. do { - + if (strchr(eth,'.')!=NULL) strcpy(eth,""); if(!strlen(eth)){ cout<<"warning:eth is empty.listening to all"<isEmpty())){ //when it reaches maxFramesPerFile,start writing new file if (framesInFile == maxFramesPerFile) {