diff --git a/common/core/CMakeLists.txt b/common/core/CMakeLists.txt index 573f3791c..2cb65af42 100644 --- a/common/core/CMakeLists.txt +++ b/common/core/CMakeLists.txt @@ -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() diff --git a/common/core/revision.c.in b/common/core/revision.c.in index 08ac34bc2..e240a4430 100644 --- a/common/core/revision.c.in +++ b/common/core/revision.c.in @@ -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() {