Skip to content

Commit f825861

Browse files
authored
Fixed firmware metrics display issue on Windows (#332)
1 parent 0a5661b commit f825861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ def firmware_metrics(target, source, env):
596596
source: SCons source
597597
env: SCons environment object
598598
"""
599-
if terminal_cp != "utf-8":
600-
print("Firmware metrics can not be shown. Set the terminal codepage to \"utf-8\"")
599+
if terminal_cp not in ["utf-8", "cp65001"]:
600+
print("Firmware metrics can not be shown. Set the terminal codepage to \"utf-8\" or \"cp65001\" on Windows.")
601601
return
602602

603603
map_file = str(Path(env.subst("$BUILD_DIR")) / (env.subst("$PROGNAME") + ".map"))

0 commit comments

Comments
 (0)