mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-22 00:34:35 +02:00
Small changes
This commit is contained in:
@@ -27,7 +27,7 @@ class FrameWorker {
|
||||
// Buffer and helper structures
|
||||
bool in_progress = false;
|
||||
uint64_t m_current_index = 0;
|
||||
PacketBuffer<jfjoch_packet_t, 64> m_buffer;
|
||||
PacketBuffer<jungfrau_packet_t, 64> m_buffer;
|
||||
|
||||
// Buffer processing
|
||||
inline uint64_t process_packets(BufferBinaryFormat& buffer);
|
||||
|
||||
@@ -31,7 +31,7 @@ inline uint64_t FrameWorker::process_packets(BufferBinaryFormat& buffer){
|
||||
}
|
||||
|
||||
// Otherwise pop the queue (and set current frame index)
|
||||
jfjoch_packet_t& c_packet = m_buffer.pop_front();
|
||||
jungfrau_packet_t& c_packet = m_buffer.pop_front();
|
||||
|
||||
// Sanity check: rather throw than segfault...
|
||||
if(c_packet.packetnum >= JF_N_PACKETS_PER_FRAME) {
|
||||
|
||||
Reference in New Issue
Block a user