--- rawreader/src/RunHeaderReader.cpp 2006/09/01 10:56:22 1.1 +++ rawreader/src/RunHeaderReader.cpp 2006/12/10 13:05:58 1.2 @@ -5,6 +5,7 @@ #include "CRC.h" //int RTtoMT,RT,Timesync,OBTtimesync; // Resurs time to moscow, Resurs time, ... +extern int print_flag; extern long int Timesync; extern long int OBTtimesync; void RunHeaderReader(char *packet) @@ -46,8 +47,7 @@ temp=(long int)(unsigned char)(packet[7])+ 256*(long int)(unsigned char)(packet[6])+ 256*256*(long int)(unsigned char)(packet[5]); - if (fmod((float)(temp),(float)(10000.))==0.) - cout<<"sorting "<0)) cout<<"sorting "<read(subData, sizeof(unsigned char)*dataLength); */ calCRC = CM_Compute_CRC16(0, (unsigned char*)subData, dataLength); - printf("crc %x %x\n",calCRC,readCRC); + if (print_flag>0) printf("crc %x %x\n",calCRC,readCRC); //took the final CRC to compare it with the previous calculated CRC of the data // for(j=0;j0)) {cout<0) cout<0) + {cout<