Skip to content

Commit

Permalink
Allow specifying start value of parameter id sum
Browse files Browse the repository at this point in the history
  • Loading branch information
jsphuebner committed May 3, 2024
1 parent 0aaa646 commit 637f16c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,13 @@ PARAM_TYPE GetType(PARAM_NUM param)

uint32_t GetIdSum()
{
#ifndef PARAM_ID_SUM_START_OFFSET
#define PARAM_ID_SUM_START_OFFSET 0
#endif // PARAM_ID_SUM_START_OFFSET
#define PARAM_ENTRY(category, name, unit, min, max, def, id) id +
#define TESTP_ENTRY(category, name, unit, min, max, def, id) id +
#define VALUE_ENTRY(name, unit, id) id +
return PARAM_LIST 0;
return PARAM_LIST PARAM_ID_SUM_START_OFFSET;
#undef PARAM_ENTRY
#undef TESTP_ENTRY
#undef VALUE_ENTRY
Expand Down

0 comments on commit 637f16c

Please sign in to comment.