Skip to content

Commit

Permalink
Reworked variables used
Browse files Browse the repository at this point in the history
Rework of the variables used to better identify the versions
  • Loading branch information
all-solutions authored Oct 18, 2024
1 parent 66e4f74 commit c5eb276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/pre_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

env.Append(CPPDEFINES=[
("SWVERSION", env.StringifyMacro(env.GetProjectOption("custom_prog_version"))),
("HWBOARD", env.StringifyMacro(env["BOARD"])),
("HWBOARD", env.StringifyMacro(env["PIOENV"])),
])

env.Replace(PROGNAME="Victron2MQTT_%s_%s" % (str(env["BOARD"]), env.GetProjectOption("custom_prog_version")))
env.Replace(PROGNAME="Victron2MQTT_%s_%s" % (str(env["PIOENV"]), env.GetProjectOption("custom_prog_version")))

0 comments on commit c5eb276

Please sign in to comment.