From 56c5ba6fbb8e7d13220ec30198b3c6ff0bcdc815 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 30 Dec 2015 19:10:40 +0200 Subject: [PATCH] Allow OTA upload port to be quoted // Issue #417 --- platformio/builder/scripts/espressif.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platformio/builder/scripts/espressif.py b/platformio/builder/scripts/espressif.py index 93b316fc..3c0c5aa4 100644 --- a/platformio/builder/scripts/espressif.py +++ b/platformio/builder/scripts/espressif.py @@ -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")