From a6dfb12296d7b7373e34bfd8f89e93367994a414 Mon Sep 17 00:00:00 2001 From: Aleksandr Kuzin Date: Fri, 15 Nov 2024 14:36:48 +0100 Subject: [PATCH] Fix for the analog data payload with internal scaling --- asam_cmp_capture_module/src/stream_fb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asam_cmp_capture_module/src/stream_fb.cpp b/asam_cmp_capture_module/src/stream_fb.cpp index b88fb1e..69f60f0 100644 --- a/asam_cmp_capture_module/src/stream_fb.cpp +++ b/asam_cmp_capture_module/src/stream_fb.cpp @@ -407,7 +407,7 @@ void createAnalogPayloadWithInternalScaling(ASAM::CMP::AnalogPayload& payload, payload.setSampleInterval(analogDataDeltaTime); using SourceType = typename SampleTypeToType::Type; - auto* rawData = reinterpret_cast(packet.getRawData()); + auto* rawData = reinterpret_cast(packet.getData()); const size_t sampleCount = packet.getSampleCount(); uint8_t unitId = 0;