Reset pulse_id to remove artifacts in final file

Since the buffer does not get zeroed out in each iteration,
the wrong pulse_id can be written to the final file if no
packets for a specific pulse_id was received.
This commit is contained in:
2020-06-17 14:22:42 +02:00
parent 61f06c6df6
commit 68e2193beb
+1
View File
@@ -131,6 +131,7 @@ ImageMetadataBlock* ImageAssembler::get_metadata_buffer(const uint64_t bunch_id)
auto is_pulse_init = false;
image_is_good_frame[i_pulse] = 1;
image_pulse_id[i_pulse] = 0;
for (size_t i_module=0; i_module < n_modules_; i_module++) {