mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-09 16:23:53 +01:00
Update main.cpp
Skip invalid images in buffer
This commit is contained in:
1 parent
ad59736153
commit
3306067034
1 file changed
+4
@@ -53,6 +53,10 @@ int main (int argc, char *argv[]) {
|
||||
// TODO: Memory copy here. Optimize this one out.
|
||||
ram_buff.read_frame(
|
||||
pulse_id, module_id, file_buff->meta, file_buff->data);
|
||||
|
||||
if (pulse_id != file_buff->meta.pulse_id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
writer.write(pulse_id, file_buff);
|
||||
|
||||
|
||||
Reference in new issue
Block a user