Skip to content

Commit

Permalink
Fix firmware version detection (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
loucass003 authored Nov 13, 2024
1 parent 628fe20 commit 608fbd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get_git_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"'"
Expand Down

0 comments on commit 608fbd2

Please sign in to comment.