Initialize the struct in case no frame is good in a slot

This commit is contained in:
babic_a committed 2020-09-04 13:11:49 +02:00
1 parent 395b986cc6
commit b6360aceda
1 file changed
+6
+6
View File
@@ -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;
}