mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-16 03:07:47 -06:00
19 lines
401 B
Python
19 lines
401 B
Python
#
|
|
# Set upload_command
|
|
#
|
|
# Windows: bossac.exe
|
|
# Other: leave unchanged
|
|
#
|
|
import pioutil
|
|
if pioutil.is_pio_build():
|
|
import platform
|
|
current_OS = platform.system()
|
|
|
|
if current_OS == 'Windows':
|
|
|
|
Import("env")
|
|
|
|
# Use bossac.exe on Windows
|
|
env.Replace(
|
|
UPLOADCMD="bossac --info --unlock --write --verify --reset --erase -U false --boot $SOURCE"
|
|
)
|