Skip to content

Commit

Permalink
PlatformIO Name output Fix
Browse files Browse the repository at this point in the history
Unified the output of the compile files after upstream commit
  • Loading branch information
ThomasToka committed Jun 13, 2023
1 parent d6c501d commit a958692
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildroot/share/PlatformIO/scripts/offset_and_rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def encrypt(source, target, env):
def rename_target(source, target, env):
from pathlib import Path
from datetime import datetime
Path(target[0].path).replace(Path(target[0].dir.path, datetime.now().strftime(new_name.replace('{date}', '%Y%m%d').replace('{time}', '%H%M%S'))))
BIN_NAME = Path(target[0].path).replace(Path(target[0].dir.path, datetime.now().strftime(new_name.replace('{date}', '%Y%m%d').replace('{time}', '%H%M%S'))))
ELF_NAME = Path(source[0].path).replace(Path(source[0].dir.path, datetime.now().strftime(new_name.replace('{date}', '%Y%m%d').replace('{time}', '%H%M%S').replace('.bin', '.elf'))))
print("FIRMWARE ELF: %s" % ELF_NAME)
print("FIRMWARE BIN: %s" % BIN_NAME)

marlin.add_post_action(rename_target)

0 comments on commit a958692

Please sign in to comment.