mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Allow OTA upload port to be quoted // Issue #417
This commit is contained in:
@ -231,7 +231,8 @@ if "FRAMEWORK" in env:
|
|||||||
# Handle uploading via OTA
|
# Handle uploading via OTA
|
||||||
ota_port = None
|
ota_port = None
|
||||||
if env.get("UPLOAD_PORT"):
|
if env.get("UPLOAD_PORT"):
|
||||||
ota_port = re.match(r"((([0-9]{1,3}\.){3}[0-9]{1,3})|.+\.local)$",
|
ota_port = re.match(
|
||||||
|
r"\"?((([0-9]{1,3}\.){3}[0-9]{1,3})|.+\.local)\"?$",
|
||||||
env.get("UPLOAD_PORT"))
|
env.get("UPLOAD_PORT"))
|
||||||
if ota_port:
|
if ota_port:
|
||||||
env.Replace(UPLOADCMD="$UPLOADOTACMD")
|
env.Replace(UPLOADCMD="$UPLOADOTACMD")
|
||||||
|
Reference in New Issue
Block a user