Minor improvements
This commit is contained in:
@@ -142,6 +142,14 @@ def PrintSystemInfo(env):
|
||||
print "Debug: %s" % " ".join(data)
|
||||
|
||||
|
||||
def PrintUploadInfo(env):
|
||||
selected = env.subst("$UPLOAD_PROTOCOL")
|
||||
available = env.BoardConfig().get("upload", {}).get(
|
||||
"protocols", [selected])
|
||||
print "Available: %s" % ", ".join(available)
|
||||
print "Selected: %s" % selected
|
||||
|
||||
|
||||
def exists(_):
|
||||
return True
|
||||
|
||||
@@ -152,4 +160,5 @@ def generate(env):
|
||||
env.AddMethod(GetFrameworkScript)
|
||||
env.AddMethod(LoadPioPlatform)
|
||||
env.AddMethod(PrintSystemInfo)
|
||||
env.AddMethod(PrintUploadInfo)
|
||||
return env
|
||||
|
||||
Reference in New Issue
Block a user