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 3a99a78 commit 58ba773
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,11 +2,11 @@

env.Append(CPPDEFINES=[
("SWVERSION", env.StringifyMacro(env.GetProjectOption("custom_prog_version"))),
("HWBOARD", env.StringifyMacro(env["BOARD"])),
("HWBOARD", env.StringifyMacro(env["PIOENV"])),
])
if env.GetProjectOption("build_type") == "debug":
env.Append(CPPDEFINES=[
("isDEBUG", env.StringifyMacro(env.GetBuildType())),
])

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

0 comments on commit 58ba773

Please sign in to comment.