From fe05a039a2a334b450a69fab0688eb3f479c73bf Mon Sep 17 00:00:00 2001 From: Terrence Date: Fri, 25 Oct 2024 12:46:33 +0800 Subject: [PATCH] fix v0.4.x board name --- versions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/versions.py b/versions.py index 75af42f..9578298 100644 --- a/versions.py +++ b/versions.py @@ -57,12 +57,12 @@ def get_board_name(folder): basename = os.path.basename(folder) if basename.startswith("v0.2"): return "simple" - if basename.startswith("v0.3"): + if basename.startswith("v0.3") or basename.startswith("v0.4"): if "ML307" in basename: return "compact.4g" else: return "compact.wifi" - raise Exception("Unknown board name") + raise Exception(f"Unknown board name: {basename}") def read_binary(dir_path): merged_bin_path = os.path.join(dir_path, "merged-binary.bin")