Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
🐛 Fix open for bin rename (MarlinFirmware#23351)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidegit authored and thinkyhead committed Dec 26, 2021
1 parent dbe1031 commit 21bb8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildroot/share/PlatformIO/scripts/marlin.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def encrypt_mks(source, target, env, new_name):
# If FIRMWARE_BIN is defined by config, override all
import re
patt = re.compile("^\\s*#define\\s+FIRMWARE_BIN\\s+\"?(.+)\"?")
with open(join("Marlin", "Configuration.h")) as f:
with open(join("Marlin", "Configuration.h"), encoding="utf-8") as f:
for line in f:
m = patt.search(line)
if m != None:
Expand Down

0 comments on commit 21bb8c3

Please sign in to comment.