mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 02:54:25 +02:00
Allow OTA upload port to be quoted // Issue #417
This commit is contained in:
@@ -231,8 +231,9 @@ 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(
|
||||||
env.get("UPLOAD_PORT"))
|
r"\"?((([0-9]{1,3}\.){3}[0-9]{1,3})|.+\.local)\"?$",
|
||||||
|
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