v023 printdata update

Firmware-Binaries
ThomasToka 6 months ago committed by GitHub
parent 7ba7278fc2
commit 1c9bde45e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@ import re
sourceFile = sys.argv[1]
# Read the ENTIRE g-code file into memory
with open(sourceFile, "r") as f:
with open(sourceFile, "r", encoding='utf-8') as f:
lines = f.readlines()
new_lines = []
@ -126,7 +126,7 @@ for i, line in enumerate(new_lines):
m117_added += 1
# Write the modified content back to the original file
with open(sourceFile, "w") as f:
with open(sourceFile, "w", encoding='utf-8') as f:
f.writelines(new_lines)
print(f"Added {m117_added} M117 commands and M73 with time information.")
print(f"Added {m117_added} M117 commands and M73 with time information.")

Loading…
Cancel
Save