Skip to content

Commit

Permalink
Update tests and headers for FlexRay
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Menne authored and Benedikt Menne committed May 24, 2024
1 parent 7ef854b commit a59ea93
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 59 deletions.
4 changes: 0 additions & 4 deletions headers/fmi3LsBusFlexRay.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* \file fmi3LsBusFlexRay.h
*/

#ifndef fmi3LsBusFlexRay_h
#define fmi3LsBusFlexRay_h

Expand Down
2 changes: 1 addition & 1 deletion headers/fmi3LsBusUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ typedef struct
{ \
memcpy((BufferInfo)->writePos, &(Operation), (Operation).header.length - (DataLength)); \
(BufferInfo)->writePos += (Operation).header.length - (DataLength); \
if ((DataLength) > 0) \
if ((DataLength) > 0 && NULL != (Data)) \
{ \
memcpy((BufferInfo)->writePos, (Data), (DataLength)); \
(BufferInfo)->writePos += (DataLength); \
Expand Down
4 changes: 0 additions & 4 deletions headers/fmi3LsBusUtilFlexRay.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* \file fmi3LsBusUtilFlexRay.h
*/

#ifndef fmi3LsBusUtilFlexRay_h
#define fmi3LsBusUtilFlexRay_h

Expand Down
2 changes: 1 addition & 1 deletion tests/helper/hdr/fmi_3_ls_bus_header_test_helper_flexray.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ enum FlexRayOperation { FlexRayTransmit, BusError, ConfigurationGlobal, StartCom
* \param[in] data The data for the FlexRay Transmit operation.
* \param[in] correctData Indicator if the method checks for a match of provided and created values or for an overflow of values.
*/
void CheckFlexRayTransmitOperation(int cycleId, int slotId, int channel, int segment, fmi3UInt8 startUpFrameIndicator,
void CheckFlexRayTransmitOperation(int cycleId, int slotId, int channel, fmi3UInt8 startUpFrameIndicator,
fmi3UInt8 syncFrameIndicator, fmi3UInt8 nullFrameIndicator,
fmi3UInt8 payloadPreambleIndicator, fmi3UInt64 minislotDuration, size_t dataSize, fmi3UInt8 data[],
bool correctData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#pragma warning(disable : 4244)
#endif

void CheckFlexRayTransmitOperation(int cycleId, int slotId, int channel, int segment, fmi3UInt8 startUpFrameIndicator,
void CheckFlexRayTransmitOperation(int cycleId, int slotId, int channel, fmi3UInt8 startUpFrameIndicator,
fmi3UInt8 syncFrameIndicator, fmi3UInt8 nullFrameIndicator, fmi3UInt8 payloadPreambleIndicator, fmi3UInt64 minislotDuration, size_t dataSize, fmi3UInt8 data[], bool correctData)
{
// Create data needed for creation.
Expand Down
Loading

0 comments on commit a59ea93

Please sign in to comment.