mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-02 07:44:13 +02:00
Initialize the struct in case no frame is good in a slot
This commit is contained in:
@@ -120,6 +120,12 @@ char* RamBuffer::read_image(const uint64_t pulse_id,
|
||||
|
||||
image_meta.is_good_image = is_good_image;
|
||||
|
||||
if (!is_pulse_init) {
|
||||
image_meta.pulse_id = pulse_id;
|
||||
image_meta.frame_index = 0;
|
||||
image_meta.daq_rec = 0;
|
||||
}
|
||||
|
||||
return src_data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user