Skip to content

Commit

Permalink
Hopefull last prompt fix :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Robson committed Aug 10, 2024
1 parent 0952545 commit 5d97671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/common/scripts/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
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+".0")
m = re.match("^v(\\d+)\\.(\\d+)\\.(\\d+).*$",plainVersion.replace("-",".")+".0")
assert m is not None,"Cannot parse version string "+plainVersion

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

0 comments on commit 5d97671

Please sign in to comment.