mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-22 17:54:18 +02:00
Add is_valid_frame logic
This commit is contained in:
@@ -53,6 +53,7 @@ struct ModuleFrame {
|
||||
struct CompressedModuleFrame {
|
||||
ModuleFrame module_frame;
|
||||
uint64_t compressed_size;
|
||||
bool is_valid_frame;
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
|
||||
@@ -88,6 +88,7 @@ bool ReplayH5Reader::get_frame(
|
||||
|
||||
if (metadata->pulse_id == 0) {
|
||||
// Signal that there is no frame at this pulse_id.
|
||||
metadata->pulse_id = pulse_id;
|
||||
return false;
|
||||
|
||||
}else if (metadata->pulse_id != pulse_id) {
|
||||
|
||||
Reference in New Issue
Block a user