mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-08 01:58:39 +02:00
Frame index reset happens as part of the acquire function
This commit is contained in:
@@ -59,8 +59,7 @@ int main (int argc, char *argv[]) {
|
||||
char* data = new char[FRAME_N_BYTES];
|
||||
|
||||
while (true) {
|
||||
// Reset the metadata and frame buffer for the next frame.
|
||||
meta.frame_index = 0;
|
||||
// Reset the data buffer.
|
||||
memset(data, 0, FRAME_N_BYTES);
|
||||
|
||||
receiver.get_frame_from_udp(meta, data);
|
||||
|
||||
Reference in New Issue
Block a user