diff --git a/scripts/get_git_commit.py b/scripts/get_git_commit.py index de446bc3..3e017922 100644 --- a/scripts/get_git_commit.py +++ b/scripts/get_git_commit.py @@ -44,7 +44,7 @@ if tag != "": output += f" '-DFIRMWARE_VERSION=\"{tag}\"'" -if tag == "" and branch != "": +elif branch != "": output += f" '-DFIRMWARE_VERSION=\"{branch}\"'" else: output += f" '-DFIRMWARE_VERSION=\"git-{revision}\"'"