Skip to content

Commit

Permalink
fix the cmake generator variable for tertiary flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Apr 4, 2024
1 parent c4239ea commit de13746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function(add_revision)
string(SUBSTRING ${_ar_REVISION} 0 1 PRIMARY_REVISION)
string(SUBSTRING ${_ar_REVISION} 1 1 SECONDARY_REVISION)
if (${USE_PRESSURE_MOVE})
set(TERTIARY_FLAG "1")
set(TERTIARY_FLAG "'1'")
else()
set(TERTIARY_FLAG "0x00")
endif()
Expand Down
2 changes: 1 addition & 1 deletion common/core/revision.c.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
static const struct revision _revision = {
.primary = '${PRIMARY_REVISION}',
.secondary = '${SECONDARY_REVISION}',
.tertiary = {0x00,'${TERTIARY_FLAG}'}
.tertiary = {0x00,${TERTIARY_FLAG}}
};

const struct revision* revision_get() {
Expand Down

0 comments on commit de13746

Please sign in to comment.