You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
359 B
19 lines
359 B
#
|
|
# 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"
|
|
)
|
|
|