Skip to content

Commit

Permalink
Merge pull request #561 from paulscottrobson/firmfix
Browse files Browse the repository at this point in the history
Fixed issue with no patch number
  • Loading branch information
paulscottrobson authored Aug 4, 2024
2 parents 7d78ddb + d462a98 commit af1522b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions firmware/common/scripts/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
print("//\n//\tThis file is automatically generated\n//")
print("#define PROMPT \"Morpheus Firmware: {0}\\r\"".format(version))


m = re.match("^v(\\d+)\\.(\\d+)\\-(\\d+).*$",plainVersion)
assert m is not None,"Cannot parse version string"
m = re.match("^v(\\d+)\\.(\\d+)\\-(\\d+).*$",plainVersion+"-0")
assert m is not None,"Cannot parse version string "+plainVersion

print("#define VERSION_MAJOR ({0})".format(m.group(1)))
print("#define VERSION_MINOR ({0})".format(m.group(2)))
Expand Down

0 comments on commit af1522b

Please sign in to comment.