Skip to content

Commit

Permalink
Fix for the analog data payload with internal scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Kuzin authored and aleksandr-kuzin committed Nov 15, 2024
1 parent 417c798 commit a6dfb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asam_cmp_capture_module/src/stream_fb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void createAnalogPayloadWithInternalScaling(ASAM::CMP::AnalogPayload& payload,
payload.setSampleInterval(analogDataDeltaTime);

using SourceType = typename SampleTypeToType<SrcType>::Type;
auto* rawData = reinterpret_cast<SourceType*>(packet.getRawData());
auto* rawData = reinterpret_cast<SourceType*>(packet.getData());
const size_t sampleCount = packet.getSampleCount();

uint8_t unitId = 0;
Expand Down

0 comments on commit a6dfb12

Please sign in to comment.