2017-09-30 14:53:50 +01:00
|
|
|
Import("env")
|
2020-01-03 00:26:34 +00:00
|
|
|
import os
|
2017-09-30 14:53:50 +01:00
|
|
|
|
2019-07-21 11:22:44 +01:00
|
|
|
# pio < 4.0.0
|
|
|
|
# from base64 import b64decode
|
|
|
|
# env.Replace(UPLOADER="pio\espupload.py")
|
|
|
|
# env.Replace(UPLOADERFLAGS="")
|
|
|
|
# env.Replace(UPLOADCMD="$UPLOADER -u " + b64decode(ARGUMENTS.get("UPLOAD_PORT")) + " -f $SOURCES")
|
2017-09-30 14:53:50 +01:00
|
|
|
|
2019-07-21 11:22:44 +01:00
|
|
|
# pio >= 4.0.0
|
2020-01-03 00:26:34 +00:00
|
|
|
env.Replace(UPLOADER=os.path.join("pio", "espupload.py"))
|
2017-09-30 14:53:50 +01:00
|
|
|
env.Replace(UPLOADERFLAGS="")
|
2019-07-21 11:22:44 +01:00
|
|
|
env.Replace(UPLOADCMD="$UPLOADER -u $UPLOAD_PORT -f $SOURCES")
|