2017-09-30 14:53:50 +01:00
|
|
|
Import("env")
|
|
|
|
|
2019-10-23 12:11:53 +01:00
|
|
|
# pio < 4.0.0
|
|
|
|
# from base64 import b64decode
|
|
|
|
# env.Replace(UPLOADER="scp")
|
|
|
|
# env.Replace(UPLOADERFLAGS="")
|
|
|
|
# env.Replace(UPLOADCMD="$UPLOADER $SOURCES " + b64decode(ARGUMENTS.get("UPLOAD_PORT")) + "/" + b64decode(ARGUMENTS.get("PIOENV")) + ".bin")
|
|
|
|
|
|
|
|
# pio >= 4.0.0
|
2017-09-30 14:53:50 +01:00
|
|
|
env.Replace(UPLOADER="scp")
|
|
|
|
env.Replace(UPLOADERFLAGS="")
|
2019-10-23 12:11:53 +01:00
|
|
|
env.Replace(UPLOADCMD='$UPLOADER $SOURCES "$UPLOAD_PORT/${PIOENV}.bin"')
|