Merge branch 'feature/idfpy_serial_ext_formatting' into 'master'

Tools: Update formatting at serial_ext.py

See merge request espressif/esp-idf!8954
This commit is contained in:
Ivan Grokhotkov 2020-06-25 17:40:06 +08:00
commit 0f3aa8f520

View File

@ -85,12 +85,7 @@ def action_extensions(base_actions, project_path):
monitor_args += ["-p", args.port]
if not monitor_baud:
if os.getenv("IDF_MONITOR_BAUD"):
monitor_baud = os.getenv("IDF_MONITOR_BAUD", None)
elif os.getenv("MONITORBAUD"):
monitor_baud = os.getenv("MONITORBAUD", None)
else:
monitor_baud = project_desc["monitor_baud"]
monitor_baud = os.getenv("IDF_MONITOR_BAUD") or os.getenv("MONITORBAUD") or project_desc["monitor_baud"]
monitor_args += ["-b", monitor_baud]
monitor_args += ["--toolchain-prefix", project_desc["monitor_toolprefix"]]