Allow OTA upload port to be quoted // Issue #417

This commit is contained in:
Ivan Kravets
2015-12-30 19:10:40 +02:00
parent 7a91683ca6
commit 56c5ba6fbb

View File

@ -231,8 +231,9 @@ if "FRAMEWORK" in env:
# Handle uploading via OTA
ota_port = None
if env.get("UPLOAD_PORT"):
ota_port = re.match(r"((([0-9]{1,3}\.){3}[0-9]{1,3})|.+\.local)$",
env.get("UPLOAD_PORT"))
ota_port = re.match(
r"\"?((([0-9]{1,3}\.){3}[0-9]{1,3})|.+\.local)\"?$",
env.get("UPLOAD_PORT"))
if ota_port:
env.Replace(UPLOADCMD="$UPLOADOTACMD")