forked from platformio/platformio-core
Fix issue when project without a specified board can't be uploaded // Resolve #1313
This commit is contained in:
@@ -214,11 +214,12 @@ def CheckUploadSize(_, target, source, env): # pylint: disable=W0613,W0621
|
|||||||
|
|
||||||
|
|
||||||
def PrintUploadInfo(env):
|
def PrintUploadInfo(env):
|
||||||
selected = env.subst("$UPLOAD_PROTOCOL")
|
configured = env.subst("$UPLOAD_PROTOCOL")
|
||||||
available = env.BoardConfig().get("upload", {}).get(
|
if "BOARD" in env:
|
||||||
"protocols", [selected])
|
available = env.BoardConfig().get("upload", {}).get(
|
||||||
print "Available: %s" % ", ".join(available)
|
"protocols", [configured])
|
||||||
print "Selected: %s" % selected
|
print "Available: %s" % ", ".join(available)
|
||||||
|
print "Configured: %s" % configured
|
||||||
|
|
||||||
|
|
||||||
def exists(_):
|
def exists(_):
|
||||||
|
Reference in New Issue
Block a user