From 5d976713ff340e64db8918b071fb2523c1d0fe94 Mon Sep 17 00:00:00 2001 From: Paul Robson Date: Sat, 10 Aug 2024 18:05:40 +0100 Subject: [PATCH] Hopefull last prompt fix :) --- firmware/common/scripts/prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/common/scripts/prompt.py b/firmware/common/scripts/prompt.py index 07c847f5..89217af9 100644 --- a/firmware/common/scripts/prompt.py +++ b/firmware/common/scripts/prompt.py @@ -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)))