Fixed an issue when Project Inspector crashes when flash use > 100% // Resolve #3368

This commit is contained in:
Ivan Kravets
2020-02-05 18:15:44 +02:00
parent 390f1935d6
commit ee2e4896d2
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -161,7 +161,9 @@ for item in env.GetExtraScripts("post"):
##############################################################################
# Checking program size
if env.get("SIZETOOL") and "nobuild" not in COMMAND_LINE_TARGETS:
if env.get("SIZETOOL") and not (
set(["nobuild", "sizedata"]) & set(COMMAND_LINE_TARGETS)
):
env.Depends(["upload", "program"], "checkprogsize")
# Replace platform's "size" target with our
_new_targets = [t for t in DEFAULT_TARGETS if str(t) != "size"]