Skip to content

Commit

Permalink
XCP_DAQ_DEFINE_ODT_ENTRY: add const qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Jan 8, 2021
1 parent 7222ab9 commit e3831b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/simlin/app_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ static FlsEmu_SegmentType S12D512_EEPROM = {
0,
};


static FlsEmu_SegmentType const * segments[] = {
&S12D512_PagedFlash,
&S12D512_EEPROM,
Expand All @@ -52,12 +51,12 @@ const FlsEmu_ConfigType FlsEmu_Config = {
2,
(FlsEmu_SegmentType**)segments,
};

const XcpDaq_ODTEntryType XcpDaq_PredefinedOdtEntries[] = {
XCP_DAQ_DEFINE_ODT_ENTRY(triangle),
XCP_DAQ_DEFINE_ODT_ENTRY(randomValue),
};


const XcpDaq_ODTType XcpDaq_PredefinedOdts[] = {
{
2, 0
Expand Down
6 changes: 3 additions & 3 deletions inc/xcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ extern "C"
#define XCP_DAQ_PREDEFINDED_LIST_COUNT (sizeof(XcpDaq_PredefinedLists) / sizeof(XcpDaq_PredefinedLists[0]))

/* DAQ Implementation Macros */
#define XCP_DAQ_DEFINE_ODT_ENTRY(meas) \
{ \
{(uint32_t)&(meas)}, sizeof((meas)) \
#define XCP_DAQ_DEFINE_ODT_ENTRY(meas) \
{ \
{(const uint32_t)&(meas)}, sizeof((meas)) \
}

/* DAQ Event Implementation Macros */
Expand Down

0 comments on commit e3831b5

Please sign in to comment.