Skip to content

Commit

Permalink
fixed string concatentate issue on version_git.py #bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
pyr0ball committed May 10, 2020
1 parent a44ed25 commit 74eabff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/version_git.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import subprocess

major_version = "2.2.1"
print("-DPP_VERSION=\\\"" + major_version + "_" + subprocess.check_output(["git", "rev-parse", "HEAD"])[0:6] + "\\\"")
major_version = "2.3.0"

git_head = str(subprocess.check_output(["git", "rev-parse", "HEAD"])[0:6])

print("-DPP_VERSION=\\\"" + major_version + "_" + git_head + "\\\"")

0 comments on commit 74eabff

Please sign in to comment.