--- yoda/techmodel/LogReader.cpp 2005/05/28 10:44:11 4.4 +++ yoda/techmodel/LogReader.cpp 2006/02/07 17:11:09 6.0 @@ -1,6 +1,6 @@ /** @file * $Source: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v $ - * $Id: LogReader.cpp,v 4.0 2005/03/06 04:33:02 kusanagi Exp $ + * $Id: LogReader.cpp,v 5.1 2006/02/04 12:37:45 kusanagi Exp $ * $Author: kusanagi $ * * Implementation of the LogReader class. @@ -41,7 +41,7 @@ */ std::string LogReader::GetVersionInfo(void) const { return - "$Header: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v 4.0 2005/03/06 04:33:02 kusanagi Exp $\n"; + "$Header: /home/cvsmanager/yoda/techmodel/LogReader.cpp,v 5.1 2006/02/04 12:37:45 kusanagi Exp $\n"; } /** @@ -70,10 +70,10 @@ //took the final CRC to compare it with the previous calculated CRC of the data readCRC = (((UINT16)(subData[length - 2]<<8))&0xFF00) + (((UINT16)subData[length - 1])&0x00FF); - //if (subCRC != readCRC) throw WrongCRCException(" Wrong CRC for Log Packet "); - if (subCRC != readCRC) { + if (subCRC != readCRC) throw WrongCRCException(" Wrong CRC for Log Packet "); + /*if (subCRC != readCRC) { logger->error("WRONG CRC FOR LOG PACKET. Processed anyway for CPU debugging"); - } + }*/ Log->COMPILATION_TIMESTAMP = (((UINT32)subData[0]<<24)&0xFF000000) + (((UINT32)subData[1]<<16)&0x00FF0000) + (((UINT32)subData[2]<<8)&0x0000FF00) + (((UINT32)subData[3])&0x000000FF); long int offset = 4;