mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 10:02:23 +02:00
Watchdog timer seems fine
This commit is contained in:
@@ -169,7 +169,7 @@ char* RamBuffer::read_image(const uint64_t pulse_id) const
|
||||
void RamBuffer::write_image(const ImageMetadata& src_meta, const char *src_data)
|
||||
{
|
||||
const int slot_n = src_meta.id % n_slots_;
|
||||
const int image_n_bytes = src_meta.height * src_meta.width * TypeMap[src_meta.dtype].size;
|
||||
const int image_n_bytes = src_meta.height * src_meta.width * TypeMap.at(src_meta.dtype).size;
|
||||
|
||||
char *dst_data = image_buffer_ + (image_n_bytes * slot_n);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user