Skip to content

Commit

Permalink
* fix: compile possible for non repository versions (if project was d…
Browse files Browse the repository at this point in the history
…ownload as zip)
  • Loading branch information
lumapu committed Aug 11, 2022
1 parent 6276957 commit caa84dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/esp8266/scripts/auto_firmware_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
from dulwich import porcelain

def get_firmware_specifier_build_flag():
build_version = porcelain.describe('../../') # refers to the repository root dir
try:
build_version = porcelain.describe('../../') # refers to the repository root dir
except:
build_version = "g0000000"

build_flag = "-D AUTO_GIT_HASH=\\\"" + build_version + "\\\""
print ("Firmware Revision: " + build_version)
return (build_flag)
Expand Down

0 comments on commit caa84dc

Please sign in to comment.