Fix upload flags when there is a space in path // Issue #79

This commit is contained in:
Valerii Koval
2018-05-24 23:38:54 +03:00
parent 1ea5afdd65
commit 87017533e7
+1 -1
View File
@@ -240,7 +240,7 @@ if upload_protocol == "esptool":
UPLOADOTACMD='"$PYTHONEXE" "$UPLOADEROTA" $UPLOADEROTAFLAGS -f $SOURCE',
)
for image in env.get("FLASH_EXTRA_IMAGES", []):
env.Append(UPLOADERFLAGS=[image[0], '"%s"' % image[1]])
env.Append(UPLOADERFLAGS=[image[0], "%s" % image[1]])
if env.subst("$PIOFRAMEWORK") == "arduino":
# Handle uploading via OTA