forked from platformio/platformio-core
Cosmetic changes
This commit is contained in:
@ -135,9 +135,9 @@ def PrintSystemInfo(env):
|
||||
else:
|
||||
external.append(key)
|
||||
if onboard:
|
||||
data.append("ON-BORD(%s)" % ", ".join(sorted(onboard)))
|
||||
data.append("ON-BORD/%s" % ", ".join(sorted(onboard)))
|
||||
if external:
|
||||
data.append("EXTERNAL(%s)" % ", ".join(sorted(external)))
|
||||
data.append("EXTERNAL/%s" % ", ".join(sorted(external)))
|
||||
|
||||
print "Debug: %s" % " ".join(data)
|
||||
|
||||
|
@ -215,11 +215,14 @@ def CheckUploadSize(_, target, source, env): # pylint: disable=W0613,W0621
|
||||
|
||||
def PrintUploadInfo(env):
|
||||
configured = env.subst("$UPLOAD_PROTOCOL")
|
||||
available = []
|
||||
if "BOARD" in env:
|
||||
available = env.BoardConfig().get("upload", {}).get(
|
||||
"protocols", [configured])
|
||||
if available:
|
||||
print "Available: %s" % ", ".join(available)
|
||||
print "Configured: %s" % configured
|
||||
if configured:
|
||||
print "Configured: upload_protocol = %s" % configured
|
||||
|
||||
|
||||
def exists(_):
|
||||
|
Reference in New Issue
Block a user