2017-09-30 14:53:50 +01:00
|
|
|
Import("env")
|
|
|
|
|
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
|
2017-09-30 14:53:50 +01:00
|
|
|
env.Replace(UPLOADER="pio\espupload.py")
|
|
|
|
env.Replace(UPLOADERFLAGS="")
|
2019-07-21 11:22:44 +01:00
|
|
|
env.Replace(UPLOADCMD="$UPLOADER -u $UPLOAD_PORT -f $SOURCES")
|
2017-09-30 14:53:50 +01:00
|
|
|
|
|
|
|
'''
|
|
|
|
env.Replace(UPLOADCMD="pio\espupload.py -f $SOURCES") # Windows
|
|
|
|
env.Replace(UPLOADCMD="pio/espupload.py -f $SOURCES") # Linux
|
|
|
|
'''
|