- Timestamp:
- 03/10/13 16:45:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/feedback.cc
r15019 r15022 727 727 void HandleCalibrateCurrents(const EventImp &evt) 728 728 { 729 if (fBiasVolt.size()==0 || fCalibration.size()==0 )729 if (fBiasVolt.size()==0 || fCalibration.size()==0 || evt.GetSize()<416*sizeof(int16_t)) 730 730 return; 731 731 … … 836 836 int HandleBiasNom(const EventImp &evt) 837 837 { 838 fVoltGapd.assign(evt.Ptr<float>(), evt.Ptr<float>()+416); 839 840 Info("Nominal bias voltages received."); 838 if (evt.GetSize()>=416*sizeof(float)) 839 { 840 fVoltGapd.assign(evt.Ptr<float>(), evt.Ptr<float>()+416); 841 Info("Nominal bias voltages received."); 842 } 841 843 842 844 return GetCurrentState(); … … 845 847 int HandleBiasVoltage(const EventImp &evt) 846 848 { 847 fBiasVolt.assign(evt.Ptr<float>(), evt.Ptr<float>()+416); 849 if (evt.GetSize()>=416*sizeof(float)) 850 fBiasVolt.assign(evt.Ptr<float>(), evt.Ptr<float>()+416); 848 851 return GetCurrentState(); 849 852 }
Note:
See TracChangeset
for help on using the changeset viewer.