Skip to content

Commit

Permalink
Makefile: do not redefined app version
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Feb 26, 2024
1 parent 51db41e commit c2164e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#define CLASS 1

#define MAJOR APPVERSION_M
#define MINOR APPVERSION_N
#define PATCH APPVERSION_P

typedef struct version {
uint8_t class;
uint8_t major;
uint8_t minor;
uint8_t patch;
} version_t;

const version_t version = {CLASS, MAJOR, MINOR, PATCH};
const version_t version = {CLASS, MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION};

0 comments on commit c2164e6

Please sign in to comment.