Skip to content

Commit efe9643

Browse files
Merge pull request #580 from paulscottrobson/promptfix
Hopefully last prompt fix :)
2 parents 0952545 + 5d97671 commit efe9643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/common/scripts/prompt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
print("//\n//\tThis file is automatically generated\n//")
2828
print("#define PROMPT \"Morpheus Firmware: {0}\\r\"".format(version))
2929

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

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

0 commit comments

Comments
 (0)