Commit 70a363ae authored by LEGEARD Luc's avatar LEGEARD Luc
Browse files

end--no-edit

parent 0968563a
......@@ -259,10 +259,9 @@ void MFMScalerDataFrame::FillScalerWithIn2p3Buffer(char* ptcharbuf,uint64_t time
nbitem = buf->les_donnees.cas.scale.Nb_channel;
EventCounter = buf->les_donnees.Count;
uint16_t fReserve[3];
SetAttributs();
int oldframesize = GetFrameSize();
int framesize = nbitem*sizeof(MFM_ScalerData_Item)+SCALER_DATA_HEADERSIZE ;
if (oldframesize != framesize){
//TODO reagencement de la frame si oldframesize != framesize
......@@ -287,6 +286,12 @@ void MFMScalerDataFrame::FillScalerWithIn2p3Buffer(char* ptcharbuf,uint64_t time
}
SetEventNumber(EventCounter);
SetTimeStamp(timestamp);
SetAttributs();
if (GetFrameSize()< 20){
cout <<" ERROR ---------------frame small ------------------------"<<endl;
HeaderDisplay();
DumpRaw(64,0);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment