From c2164e609b342e307fb3695a339b30a480ca9ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Fri, 23 Feb 2024 17:27:39 +0100 Subject: [PATCH] Makefile: do not redefined app version --- Makefile | 4 ++-- src/version.h | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 96678f78..d66c8a1d 100644 --- a/Makefile +++ b/Makefile @@ -61,8 +61,8 @@ show-app: DISABLE_STANDARD_APP_SYNC_RAPDU = 1 DISABLE_STANDARD_APP_FILES = 1 DEFINES += HAVE_LEGACY_PID -DEFINES += VERSION=\"$(APPVERSION)\" APPVERSION_M=$(APPVERSION_M) -DEFINES += COMMIT=\"$(COMMIT)\" APPVERSION_N=$(APPVERSION_N) APPVERSION_P=$(APPVERSION_P) +DEFINES += VERSION=\"$(APPVERSION)\" +DEFINES += COMMIT=\"$(COMMIT)\" ENABLE_BLUETOOTH = 1 ENABLE_NBGL_QRCODE = 1 diff --git a/src/version.h b/src/version.h index 6c50929a..a459506a 100644 --- a/src/version.h +++ b/src/version.h @@ -1,9 +1,5 @@ #define CLASS 1 -#define MAJOR APPVERSION_M -#define MINOR APPVERSION_N -#define PATCH APPVERSION_P - typedef struct version { uint8_t class; uint8_t major; @@ -11,4 +7,4 @@ typedef struct version { uint8_t patch; } version_t; -const version_t version = {CLASS, MAJOR, MINOR, PATCH}; +const version_t version = {CLASS, MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION};