From 6f50707cfb6ab44a0eea9c945e8384f6076a20af Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 15 Jun 2023 09:19:01 +0200 Subject: [PATCH] when dbit list is enabled, the size of data in zmq stream is changed to only the digital bits enabled size. now fixed to also include analog size (#764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Erik Fröjdh --- slsReceiverSoftware/src/DataProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsReceiverSoftware/src/DataProcessor.cpp b/slsReceiverSoftware/src/DataProcessor.cpp index 0c174638d..7a8166ae1 100644 --- a/slsReceiverSoftware/src/DataProcessor.cpp +++ b/slsReceiverSoftware/src/DataProcessor.cpp @@ -541,7 +541,7 @@ void DataProcessor::RearrangeDbitData(size_t &size, char *data) { // copy back to memory and update size memcpy(data + nAnalogDataBytes, result.data(), numResult8Bits * sizeof(uint8_t)); - size = numResult8Bits * sizeof(uint8_t); + size = numResult8Bits * sizeof(uint8_t) + nAnalogDataBytes + ctbDbitOffset; } void DataProcessor::CropImage(size_t &size, char *data) {