Skip to content

Commit

Permalink
fix v0.4.x board name
Browse files Browse the repository at this point in the history
  • Loading branch information
78 committed Oct 25, 2024
1 parent 32a5977 commit fe05a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fe05a03

Please sign in to comment.