Skip to content

Commit

Permalink
Change the location of the seenHeadersAndTrailers initialization in e…
Browse files Browse the repository at this point in the history
…vent()
  • Loading branch information
Katsuro Nakamura committed Jun 16, 2022
1 parent dd2c49a commit be5ee09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions svd/modules/svdUnpacker/src/SVDUnpackerModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ void SVDUnpackerModule::event()
short strip, sample[6];
vector<uint32_t> crc16vec;

//reset value for headers and trailers check
seenHeadersAndTrailers = 0;

for (; data32_it != &data32tab[buf][nWords[buf]]; data32_it++) {
m_data32 = *data32_it; //put current 32-bit frame to union

Expand Down Expand Up @@ -535,9 +538,6 @@ void SVDUnpackerModule::event()
if (!(seenHeadersAndTrailers & 8)) {B2ERROR("Missing FTB Trailer is detected. SVD data might be corrupted!" << LogVar("Event number", eventNo) << LogVar("FADC", fadc)); missedTrailer = true;}
}

//reset value for headers and trailers check
seenHeadersAndTrailers = 0;

for (auto p : vDiagnostic_ptr) {
// adding remaining info to Diagnostic object
p->setFTBFlags(ftbFlags);
Expand Down

0 comments on commit be5ee09

Please sign in to comment.